From: Steven Whitehouse Date: Sat, 21 May 2011 18:21:07 +0000 (+0100) Subject: GFS2: Wait properly when flushing the ail list X-Git-Tag: v3.0-rc1~353^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26b06a6958df0f12f1a654db8598433eb89cc024;p=pandora-kernel.git GFS2: Wait properly when flushing the ail list The ail flush code has always relied upon log flushing to prevent it from spinning needlessly. This fixes it to wait on the last I/O request submitted (we don't need to wait for all of it) instead of either spinning with io_schedule or sleeping. As a result cpu usage of gfs2_logd is much reduced with certain workloads. Reported-by: Abhijith Das Tested-by: Abhijith Das Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed