blk-mq: don't allow queue entering for a dying queue
authorKeith Busch <keith.busch@intel.com>
Fri, 6 Jun 2014 16:22:07 +0000 (10:22 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 6 Jun 2014 16:40:03 +0000 (10:40 -0600)
If the queue is going away, don't let new allocs or queueing
happen on it. Go through the normal wait process, and exit with
ENODEV in that case.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c

diff --cc block/blk-mq.c
Simple merge