On Thu, Mar 06, 2014 at 01:54:56PM +0800, Miao Xie wrote:
@@ -349,10 +349,13 @@ int btrfs_dec_test_first_ordered_pending(struct inode
*inode,
if (!uptodate)
set_bit(BTRFS_ORDERED_IOERR, entry-flags);
- if (entry-bytes_left == 0)
+ if (entry-bytes_left == 0) {
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 mi...@cn.fujitsu.com
---
Changelog v1 - v2:
- None.
---