commit | 8b9d83cd6bebe10e9965d2cef8053b02663eaad8 | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Thu Mar 06 13:54:55 2014 +0800 |
committer | Josef Bacik <jbacik@fb.com> | Mon Mar 10 15:17:22 2014 -0400 |
tree | 40603d4f493836043693f81cf658847017998d5f | |
parent | 8257b2dc3c1a1057b84a589827354abdc4c767fd [diff] |
Btrfs: fix early enospc due to the race of the two ordered extent wait btrfs_wait_ordered_roots() moves all the list entries to a new list, and then deals with them one by one. But if the other task invokes this function at that time, it would get a empty list. It makes the enospc error happens more early. Fix it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fb.com>