Thread (27 messages) 27 messages, 4 authors, 2020-12-04

Re: [PATCH v4 7/9] scsi: Only process PM requests if rpm_status != RPM_ACTIVE

From: Hannes Reinecke <hare@suse.de>
Date: 2020-12-02 07:15:41
Also in: linux-scsi

On 11/30/20 3:46 AM, Bart Van Assche wrote:
Instead of submitting all SCSI commands submitted with scsi_execute() to a
SCSI device if rpm_status != RPM_ACTIVE, only submit RQF_PM (power
management requests) if rpm_status != RPM_ACTIVE. This patch makes the
SCSI core handle the runtime power management status (rpm_status) as it
should be handled.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Can Guo <redacted>
Cc: Stanley Chu <redacted>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Ming Lei <redacted>
Cc: Rafael J. Wysocki <redacted>
Cc: Martin Kepplinger <redacted>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
  drivers/scsi/scsi_lib.c | 27 ++++++++++++++-------------
  1 file changed, 14 insertions(+), 13 deletions(-)
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare@suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help