Thread (2 messages) 2 messages, 2 authors, 2017-11-16

Re: [PATCH] block: wake up all tasks blocked in get_request()

From: Jens Axboe <axboe@kernel.dk>
Date: 2017-11-16 04:50:06

On 11/15/2017 05:08 PM, Ming Lei wrote:
Once blk_set_queue_dying() is done in blk_cleanup_queue(), we call
blk_freeze_queue() and wait for q->q_usage_counter becoming zero. But if
there are tasks blocked in get_request(), q->q_usage_counter can never
become zero. So we have to wake up all these tasks in blk_set_queue_dying()
first.
Looks correct to me, since we do exclusive waits on that waitqueue.
Applied for this series.
Fixes: 3ef28e83ab157997(block: generic request_queue reference counting)
Note that the format here is ("patch title")

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help