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)
commit3b632cf0eaa2e89a12c18f043e6e7c5bcc003645
tree91311650aee107995e71b98cdb53f47fe3e8b1dd
parenta4391c6465d9c978fd4bded12e34bdde3f5458f0
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