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

2017-10-02 Thread Bart Van Assche
On Sat, 2017-09-30 at 14:12 +0800, Ming Lei wrote: > @@ -1395,16 +1401,21 @@ static struct request *blk_old_get_request(struct > request_queue *q, > unsigned int op, gfp_t gfp_mask) > { > struct request *rq; > + int ret = 0; > > WARN_ON_O

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

2017-10-02 Thread Christoph Hellwig
I think I already gate it to basically the same patch as queued up by Bart, but here again: Reviewed-by: Christoph Hellwig

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

2017-09-29 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(&q->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. Tested-by: Oleksandr Natalenko Tested-by: Mart