block: wake up waiters when a queue is marked dying
authorJens Axboe <axboe@fb.com>
Mon, 22 Dec 2014 21:04:42 +0000 (14:04 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:57 +0000 (12:54 -0600)
commit88c5ac14267119e7561e0b4132fad0cbd188a50d
treef33a6cd956d604d24ef8a1ca4dd008e3b70dcdfc
parent11e7d3ba880c94b6aff065068d483743d68696bb
block: wake up waiters when a queue is marked dying

If it's dying, we can't expect new request to complete and come
in an wake up other tasks waiting for requests. So after we
have marked it as dying, wake up everybody currently waiting
for a request. Once they wake, they will retry their allocation
and fail appropriately due to the state of the queue.

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