Re: [RFC] blk-mq: clean up the hctx restart

2018-08-02 Thread Bart Van Assche
On Fri, 2018-08-03 at 01:17 +0800, Ming Lei wrote: > Not mentioning big CPU utilization is consumed unnecessarily for iterating > over all queues even though there is only one active queue, is this fair from > system view? I hope that someone will come up some day with a better solution than the l

Re: [RFC] blk-mq: clean up the hctx restart

2018-07-30 Thread jianchao.wang
Hi Ming On 07/31/2018 12:58 PM, Ming Lei wrote: > On Tue, Jul 31, 2018 at 12:02:15PM +0800, Jianchao Wang wrote: >> Currently, we will always set SCHED_RESTART whenever there are >> requests in hctx->dispatch, then when request is completed and >> freed the hctx queues will be restarted to avoid I