Re: [PATCH] scsi: sd: add runtime pm to open / release

From: Alan Stern
Date: Mon Jul 06 2020 - 12:41:37 EST


On Tue, Jun 30, 2020 at 20:49:58PM -0400, Alan Stern wrote:
> On Tue, Jun 30, 2020 at 04:31:58PM -0700, Bart Van Assche wrote:
> > On 2020-06-30 12:38, Alan Stern wrote:
> > > Assume that BLK_MQ_REQ_PREEMPT is set in flags. Then where exactly
> > > does blk_queue_enter(q, flags) call blk_pm_request_resume(q)?
> >
> > Please take a look at how the *current* implementation of runtime power
> > management works. Your question is relevant for the old implementation
> > of runtime power management but not for the current implementation.
>
> What do you mean by "current"? I have been looking at the implementation
> in 5.8-rc3 from Linus's tree. Should I look somewhere else?

Any reply to this, or further concerns about the proposed patch?

I'd like to fix up this API, and it appears that you are the only
person to have worked on it significantly in the last two years.

Alan Stern