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