block: blk-mq: support draining mq queue
authorMing Lei <tom.leiming@gmail.com>
Thu, 26 Dec 2013 13:31:35 +0000 (21:31 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 31 Dec 2013 16:53:05 +0000 (09:53 -0700)
commit43a5e4e21964a6efb4d14a34644ec7109d0ae891
tree9ff635ec990583c0877d4056841d35e6018825a1
parentb28bc9b38c52f63f43e3fd875af982f2240a2859
block: blk-mq: support draining mq queue

blk_mq_drain_queue() is introduced so that we can drain
mq queue inside blk_cleanup_queue().

Also don't accept new requests any more if queue is marked
as dying.

Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-exec.c
block/blk-mq.c
block/blk-mq.h