From: Dave Chinner Date: Fri, 6 May 2011 02:54:05 +0000 (+0000) Subject: xfs: exit AIL push work correctly when AIL is empty X-Git-Tag: v2.6.39~64^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e7004e741de0b2daabbbadafbaf11ff1a94e00c;p=pandora-kernel.git xfs: exit AIL push work correctly when AIL is empty The recent conversion of the xfsaild functionality to a work queue introduced a hard-to-hit log space grant hang. The main cause is a regression where a work exit path fails to clear the PUSHING state and recheck the target correctly. Make both exit paths do the same PUSHING bit clearing and target checking when the "no more work to be done" condition is hit. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder (cherry picked from commit ea35a20021f8497390d05b93271b4d675516c654) --- Reading git-diff-tree failed