From: Shaohua Li Date: Wed, 24 Aug 2011 14:04:34 +0000 (+0200) Subject: block: simplify force plug flush code a little bit X-Git-Tag: v3.1-rc7~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56ebdaf2fa3c5276be201c5d1aff1490b682ecf2;p=pandora-kernel.git block: simplify force plug flush code a little bit Cleaning up the code a little bit. attempt_plug_merge() traverses the plug list anyway, we can do the request counting there, so stack size is reduced a little bit. The motivation here is I suspect if we should count the requests for each queue (task could handle multiple disks in the meantime), but my test doesn't show it's worthy doing. If somebody proves we should do it, below change will make that more easier. Signed-off-by: Shaohua Li Signed-off-by: Shaohua Li Signed-off-by: Jens Axboe --- Reading git-diff-tree failed