]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: avoid unnecessary plug list flush
authorShaohua Li <shaohua.li@intel.com>
Mon, 24 Oct 2011 14:53:52 +0000 (01:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 7 Nov 2011 02:40:25 +0000 (13:40 +1100)
commit90303e16537d8ed1e2b79483fbad0742046e236e
tree078345bf31518e68a1719a40a97bde3fc3cca878
parent3a7a787bf4504a33bcb0e6234da14c9ec0faa8c3
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