diff options
author | Jan Kara <jack@suse.cz> | 2009-09-16 19:22:48 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-25 18:08:24 +0200 |
commit | a5989bdc981ec85e0734ac22519cc0b780813d7b (patch) | |
tree | 74cc93bd420b7bd044e3fd5451c652b3742015e6 /fs/debugfs | |
parent | 7fa07729e439a6184bd824746d06a49cca553f15 (diff) | |
download | linux-a5989bdc981ec85e0734ac22519cc0b780813d7b.tar.bz2 |
fs: Fix busyloop in wb_writeback()
If all inodes are under writeback (e.g. in case when there's only one inode
with dirty pages), wb_writeback() with WB_SYNC_NONE work basically degrades
to busylooping until I_SYNC flags of the inode is cleared. Fix the problem by
waiting on I_SYNC flags of an inode on b_more_io list in case we failed to
write anything.
Tested-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/debugfs')
0 files changed, 0 insertions, 0 deletions