From: Jan Kara Date: Wed, 16 Sep 2009 17:22:48 +0000 (+0200) Subject: fs: Fix busyloop in wb_writeback() X-Git-Tag: v2.6.32-rc1~24^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5989bdc981ec85e0734ac22519cc0b780813d7b;p=pandora-kernel.git 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 Signed-off-by: Jan Kara Signed-off-by: Jens Axboe --- Reading git-diff-tree failed