Re: [PATCH V6 2/6] block: tracking request allocation with q_usage_counter

2017-09-27 Thread Hannes Reinecke
On 09/27/2017 07:48 AM, Ming Lei wrote: > This usage is basically same with blk-mq, so that we can > support to freeze legacy queue easily. > > Also 'wake_up_all(>mq_freeze_wq)' has to be moved > into blk_set_queue_dying() since both legacy and blk-mq > may wait on the wait queue of

[PATCH V6 2/6] block: tracking request allocation with q_usage_counter

2017-09-26 Thread Ming Lei
This usage is basically same with blk-mq, so that we can support to freeze legacy queue easily. Also 'wake_up_all(>mq_freeze_wq)' has to be moved into blk_set_queue_dying() since both legacy and blk-mq may wait on the wait queue of .mq_freeze_wq. Signed-off-by: Ming Lei ---