]> 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>
Fri, 11 Nov 2011 03:20:41 +0000 (14:20 +1100)
commit0aa79ad7cb6b2de4a224631112030673e9887395
tree051cb8471a5417ed527faa8fc4d9d235793009c7
parentbc4840aadd02e86a8b18bbd896affdde0ae34bec
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