]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: avoid unnecessary plug list flush
authorShaohua Li <shaohua.li@intel.com>
Tue, 8 Nov 2011 00:20:07 +0000 (11:20 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 16 Nov 2011 01:47:00 +0000 (12:47 +1100)
commitd3a102593630d777854c2846ebc541b9a526b927
treec5d9fa8b28b4b502e1d51ee20faaf11bcb9a6e24
parentddeb8a1a7f907902f0f0651e85623e57dadcb5e5
block: avoid unnecessary plug list flush

get_request_wait() could sleep and flush the plug list.  If the list is
already flushed, don't flush again.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
block/blk-core.c