]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Btrfs: fix early enospc due to the race of the two ordered extent wait
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 6 Mar 2014 05:54:55 +0000 (13:54 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:17:22 +0000 (15:17 -0400)
commit8b9d83cd6bebe10e9965d2cef8053b02663eaad8
tree40603d4f493836043693f81cf658847017998d5f
parent8257b2dc3c1a1057b84a589827354abdc4c767fd
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>
fs/btrfs/ordered-data.c