Re: [PATCH V3 00/17] SCSI: introduce per-host admin queue & enable runtime PM
From: jianchao.wang <hidden>
Date: 2018-09-18 01:17:12
From: jianchao.wang <hidden>
Date: 2018-09-18 01:17:12
Hi Ming On 09/17/2018 08:07 PM, Ming Lei wrote:
quoted
quoted
This way will delay runtime pm or system suspend until the queue is unfrozen, but it isn't reasonable.This interface is for the __scsi_execute only, before we call into function, we should have get the device resumed synchronously.I mean when the queue is frozen, it is reasonable to runtime suspend the queue. However, blk_queue_preempt_enter() is still waiting for queue becoming unfreezing first.
We don't freeze the queue, but set preempt-only mode when suspend the queue. :) Thanks Jianchao