* [PATCH] block: Omit a redundant pm_runtime_mark_last_busy() call in blk_post_runtime_resume()
@ 2026-03-14 14:15 Markus Elfring
2026-03-16 16:52 ` Bart Van Assche
0 siblings, 1 reply; 3+ messages in thread
From: Markus Elfring @ 2026-03-14 14:15 UTC (permalink / raw)
To: linux-block, Jens Axboe
Cc: LKML, kernel-janitors, Felix Gu, Laurent Pinchart,
Rafael J. Wysocki, Sakari Ailus
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 14 Mar 2026 15:06:37 +0100
The device's last busy timestamp was set in a wrapper function since
the commit 18c1fe53d186867243f4cf17f4eef60737a16c4c ("PM: runtime:
Mark last busy stamp in pm_request_autosuspend()").
Thus delete a pm_runtime_mark_last_busy() call before
a pm_request_autosuspend() call.
The source code was transformed by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
block/blk-pm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/block/blk-pm.c b/block/blk-pm.c
index 8d3e052f91da..d6eab3193a20 100644
--- a/block/blk-pm.c
+++ b/block/blk-pm.c
@@ -181,7 +181,6 @@ void blk_post_runtime_resume(struct request_queue *q)
spin_lock_irq(&q->queue_lock);
old_status = q->rpm_status;
q->rpm_status = RPM_ACTIVE;
- pm_runtime_mark_last_busy(q->dev);
pm_request_autosuspend(q->dev);
spin_unlock_irq(&q->queue_lock);
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] block: Omit a redundant pm_runtime_mark_last_busy() call in blk_post_runtime_resume()
2026-03-14 14:15 [PATCH] block: Omit a redundant pm_runtime_mark_last_busy() call in blk_post_runtime_resume() Markus Elfring
@ 2026-03-16 16:52 ` Bart Van Assche
2026-03-16 17:07 ` Markus Elfring
0 siblings, 1 reply; 3+ messages in thread
From: Bart Van Assche @ 2026-03-16 16:52 UTC (permalink / raw)
To: Markus Elfring, linux-block, Jens Axboe
Cc: LKML, kernel-janitors, Felix Gu, Laurent Pinchart,
Rafael J. Wysocki, Sakari Ailus
On 3/14/26 7:15 AM, Markus Elfring wrote:
> The device's last busy timestamp was set in a wrapper function since
> the commit 18c1fe53d186867243f4cf17f4eef60737a16c4c ("PM: runtime:
> Mark last busy stamp in pm_request_autosuspend()").
> Thus delete a pm_runtime_mark_last_busy() call before
> a pm_request_autosuspend() call.
>
> The source code was transformed by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
> ---
> block/blk-pm.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/block/blk-pm.c b/block/blk-pm.c
> index 8d3e052f91da..d6eab3193a20 100644
> --- a/block/blk-pm.c
> +++ b/block/blk-pm.c
> @@ -181,7 +181,6 @@ void blk_post_runtime_resume(struct request_queue *q)
> spin_lock_irq(&q->queue_lock);
> old_status = q->rpm_status;
> q->rpm_status = RPM_ACTIVE;
> - pm_runtime_mark_last_busy(q->dev);
> pm_request_autosuspend(q->dev);
> spin_unlock_irq(&q->queue_lock);
>
Isn't it expected that the Coccinelle script is shared when a patch is
posted that has been generated by Coccinelle? Anyway:
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-16 17:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-14 14:15 [PATCH] block: Omit a redundant pm_runtime_mark_last_busy() call in blk_post_runtime_resume() Markus Elfring
2026-03-16 16:52 ` Bart Van Assche
2026-03-16 17:07 ` Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox