mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Stanley Jhu <stanleyjhu@google.com>, Jens Axboe <axboe@kernel.dk>
Cc: "Rafael J . Wysocki" <rafael@kernel.org>,
	Praveen Talari <praveen.talari@oss.qualcomm.com>,
	Alan Stern <stern@rowland.harvard.edu>,
	linux-block@vger.kernel.org, linux-pm@vger.kernel.org,
	linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH] block: Keep RPM_ACTIVE in blk_pre_runtime_resume() when already active
Date: Thu, 29 Oct 2026 09:22:23 -0700	[thread overview]
Message-ID: <8125a75a-ea47-49f8-90e4-7f7c83db90e2@acm.org> (raw)
In-Reply-To: <20261029040001.2100001-1-stanleyjhu@google.com>

On 10/29/26 12:08 AM, Stanley Jhu wrote:
> 2. The first runtime resume fails in the driver callback, and
>     blk_post_runtime_resume() sets q->rpm_status to RPM_ACTIVE and calls
>     blk_clear_pm_only(), decrementing q->pm_only from 1 to 0 so recovery
>     commands can enter the queue (intended since
>     commit 6e1fcab00a23 ("scsi: block: pm: Always set request queue
>     runtime active in blk_post_runtime_resume()")).

q->rpm_status should be changed back to RPM_SUSPENDED if a runtime
resume fails. The changes made my this patch don't look right to me.

Bart.

      reply	other threads:[~2026-10-29 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29  7:08 Stanley Jhu
2026-10-29 16:22 ` Bart Van Assche [this message]

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=8125a75a-ea47-49f8-90e4-7f7c83db90e2@acm.org \
    --to=bvanassche@acm.org \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=praveen.talari@oss.qualcomm.com \
    --cc=rafael@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=stanleyjhu@google.com \
    --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

all inboxes | Powered by JetHome®