Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <mkp@kernel.org>
To: Bart Van Assche <bvanassche@acm.org>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
	linux-scsi@vger.kernel.org,  John Garry <john.garry@linux.dev>,
	Christoph Hellwig <hch@lst.de>,  Lianqin Hu <hulianqin@vivo.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] scsi: sd: Mark the disk dead if runtime resume fails in sd_remove()
Date: Fri, 23 Oct 2026 22:52:03 -0400	[thread overview]
Message-ID: <yq1jyn795fi.fsf@mail.kernel.org> (raw)
In-Reply-To: <2c0c76d70f0fe197932836b9bcf8496095135d1b.1792446921.git.bvanassche@acm.org>


Bart,

> If a SCSI disk is unplugged while runtime suspended, its request queue
> is still in the pm-only state when sd_remove() is called. The runtime
> resume attempted by scsi_autopm_get_device() fails because the parent
> device, e.g. a USB device in the USB_STATE_NOTATTACHED state, cannot be
> resumed.

Applied to 7.4/scsi-staging, thanks!

-- 
Martin K. Petersen

  parent reply	other threads:[~2026-10-24  2:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 21:55 [PATCH] scsi: sd: Mark the disk dead if runtime resume fails in sd_remove() Bart Van Assche
2026-10-20  7:39 ` John Garry
2026-10-20 23:36   ` Bart Van Assche
2026-10-24  2:52 ` Martin K. Petersen [this message]
2026-10-29  2:02 ` Martin K. Petersen (Oracle)

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=yq1jyn795fi.fsf@mail.kernel.org \
    --to=mkp@kernel.org \
    --cc=bvanassche@acm.org \
    --cc=hch@lst.de \
    --cc=hulianqin@vivo.com \
    --cc=john.garry@linux.dev \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=stable@vger.kernel.org \
    /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