]> git.baikalelectronics.ru Git - kernel.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)
commitcb303e18e77ad18622174797b1012e4d39750d88
tree40603d4f493836043693f81cf658847017998d5f
parentabab186f818c019812521516a8e74219ca4eb7bf
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