]> 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, 9 Nov 2011 02:10:14 +0000 (13:10 +1100)
commit40e9e75dbd4588ed9142c452c1ff881ffb340032
treea1b480017d8588661c33c307f878b26bca144d90
parent4925bacd697e0d134b015dceb7548732efe818ff
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