From: Shaohua Li Date: Fri, 8 May 2015 17:51:28 +0000 (-0700) Subject: blk: clean up plug X-Git-Tag: omap-for-v4.3/legacy-v2-signed~149^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd6cf3e18decb4895503db1752bb5500c4dd588d;p=pandora-kernel.git blk: clean up plug Current code looks like inner plug gets flushed with a blk_finish_plug(). Actually it's a nop. All requests/callbacks are added to current->plug, while only outmost plug is assigned to current->plug. So inner plug always has empty request/callback list, which makes blk_flush_plug_list() a nop. This tries to make the code more clear. Signed-off-by: Shaohua Li Reviewed-by: Jeff Moyer Reviewed-by: Christoph Hellwig Signed-off-by: Jens Axboe --- Reading git-diff-tree failed