]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit027a53c84a3d84d9fa27443935728a01ac992973
tree91311650aee107995e71b98cdb53f47fe3e8b1dd
parent28da2494ad32f09a324280b48d66d51c245548f7
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