]> git.baikalelectronics.ru Git - kernel.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)
commit8f9a120e8b127d9fc9604f8898288e827677c80d
tree922d96888bc7fd2929e1553f31bd4e51d4e8291e
parentdd974c96d8f77f4d64e9555000a98cfcc33f322d
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