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>
Mon, 30 Mar 2015 18:54:52 +0000 (12:54 -0600)
commit0df0c987e014c52f4be465b45ddaa2e882e4f790
treec6f144ad0c1580a2b9a72916351f8ae393b24b1c
parentb8b8ff6a04140a346462ca97a651f74f9a50b78b
blk-mq: don't allow queue entering for a dying queue

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