]> 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)
commit7274ad86de9525f9cdebd306a5d31fd3f23bda7b
tree922d96888bc7fd2929e1553f31bd4e51d4e8291e
parentcb303e18e77ad18622174797b1012e4d39750d88
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