Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH] scsi: pm: Drop unneeded call to pm_runtime_mark_last_busy()
@ 2025-10-27 15:20 Nuno Sá via B4 Relay
  2025-10-27 16:37 ` Bart Van Assche
  0 siblings, 1 reply; 3+ messages in thread
From: Nuno Sá via B4 Relay @ 2025-10-27 15:20 UTC (permalink / raw)
  To: linux-scsi; +Cc: James E.J. Bottomley, Martin K. Petersen

From: Nuno Sá <nuno.sa@analog.com>

There's no need to explicitly call pm_runtime_mark_last_busy() since
pm_runtime_autosuspend() is now doing it.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
---
 drivers/scsi/scsi_pm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c
index d581613d87c7..2652fecbfe47 100644
--- a/drivers/scsi/scsi_pm.c
+++ b/drivers/scsi/scsi_pm.c
@@ -205,7 +205,6 @@ static int scsi_runtime_idle(struct device *dev)
 	/* Insert hooks here for targets, hosts, and transport classes */
 
 	if (scsi_is_sdev_device(dev)) {
-		pm_runtime_mark_last_busy(dev);
 		pm_runtime_autosuspend(dev);
 		return -EBUSY;
 	}

---
base-commit: 8fec172c82c2b5f6f8e47ab837c1dc91ee3d1b87
change-id: 20251027-scsi-pm-improv-71477eb109c2
--

Thanks!
- Nuno Sá



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-28  9:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 15:20 [PATCH] scsi: pm: Drop unneeded call to pm_runtime_mark_last_busy() Nuno Sá via B4 Relay
2025-10-27 16:37 ` Bart Van Assche
2025-10-28  9:27   ` Nuno Sá

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox