On Fri, 2018-07-27 at 09:57 +0800, jianchao.wang wrote:
> If q_usage_counter is not zero here, we will leave the request_queue in 
> preempt only mode.

That's on purpose. If q_usage_counter is not zero then blk_pre_runtime_suspend()
will return -EBUSY. That error code will be passed to blk_post_runtime_suspend()
and that will cause that function to clear QUEUE_FLAG_PREEMPT_ONLY.

> The request_queue should be set to preempt only mode only when we confirm we 
> could set
> rpm_status to RPM_SUSPENDING or RPM_RESUMING.

Why do you think this?

Bart.

Reply via email to