From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org,
Alan Stern <stern@rowland.harvard.edu>,
Douglas Gilbert <dgilbert@interlog.com>
Subject: Re: [PATCH] scsi: sg: Enable runtime power management
Date: Mon, 04 Nov 2024 21:33:26 -0500 [thread overview]
Message-ID: <yq1o72u4dgh.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <40e8ff4e-9ffc-4658-ae1f-69ceee5593cb@acm.org> (Bart Van Assche's message of "Mon, 4 Nov 2024 09:25:17 -0800")
Bart,
>> In 2010, runtime power management support was implemented in the SCSI
>> core. The description of patch "[SCSI] implement runtime Power
>> Management" mentions that the sg driver is skipped but not why. This
>> patch enables runtime power management even if an instance of the sg
>> driver is held open. Enabling runtime PM for the sg driver is safe
>> because all interactions of the sg driver with the SCSI device pass
>> through the block layer (blk_execute_rq_nowait()) and the block layer
>> already supports runtime PM.
Applied to 6.13/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
next prev parent reply other threads:[~2024-11-05 2:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-30 22:03 [PATCH] scsi: sg: Enable runtime power management Bart Van Assche
2024-11-04 17:25 ` Bart Van Assche
2024-11-05 2:33 ` Martin K. Petersen [this message]
2024-11-05 2:47 ` Alan Stern
2024-11-14 2:49 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yq1o72u4dgh.fsf@ca-mkp.ca.oracle.com \
--to=martin.petersen@oracle.com \
--cc=bvanassche@acm.org \
--cc=dgilbert@interlog.com \
--cc=linux-scsi@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox