]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Btrfs: wake up the tasks that wait for the io earlier
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 6 Mar 2014 05:54:56 +0000 (13:54 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:17:23 +0000 (15:17 -0400)
commitaf7a65097b3f0a63caf1755df78d04e1a33588ef
tree922d96888bc7fd2929e1553f31bd4e51d4e8291e
parent8b9d83cd6bebe10e9965d2cef8053b02663eaad8
Btrfs: wake up the tasks that wait for the io earlier

The tasks that wait for the IO_DONE flag just care about the io of the dirty
pages, so it is better to wake up them immediately after all the pages are
written, not the whole process of the io completes.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/ordered-data.c