From: Damien Le Moal <dlemoal@kernel.org>
To: "Petr Tesařík" <petr@tesarici.cz>,
"Martin K . Petersen" <martin.petersen@oracle.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH] scsi: Do not rescan devices with a suspended queue
Date: Tue, 10 Oct 2023 07:36:01 +0900 [thread overview]
Message-ID: <c05ba025-48f3-4c76-b4db-bceeff5d4f03@kernel.org> (raw)
In-Reply-To: <20231009081736.28ddb5fe@meshulam.tesarici.cz>
On 10/9/23 15:17, Petr Tesařík wrote:
> Hi, (adding James)
>
> On Wed, 4 Oct 2023 17:58:03 +0900
> Damien Le Moal <dlemoal@kernel.org> wrote:
>
>> Commit ff48b37802e5 ("scsi: Do not attempt to rescan suspended devices")
>> modified scsi_rescan_device() to avoid attempting rescanning a suspended
>> device. However, the modification added a check to verify that a SCSI
>> device is in the running state without checking if the device request
>> queue (in the case of block device) is also running, thus allowing the
>> exectuion of internal requests. Without checking the device request
>> queue, commit ff48b37802e5 fix is incomplete and deadlocks on resume can
>> still happen. Use blk_queue_pm_only() to check if the device request
>> queue allows executing commands in addition to checking the SCSI device
>> state.
>
> FTR this fix is still needed for rc5. Is there any chance it goes into
> fixes before v6.6 is final?
The patch is on the scsi list, not for libata. Martin will likely apply it this
week.
Martin ? Please confirm !
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2023-10-09 22:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-04 8:58 [PATCH] scsi: Do not rescan devices with a suspended queue Damien Le Moal
2023-10-09 6:17 ` Petr Tesařík
2023-10-09 22:36 ` Damien Le Moal [this message]
2023-10-10 1:43 ` Martin K. Petersen
2023-10-10 2:23 ` Damien Le Moal
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=c05ba025-48f3-4c76-b4db-bceeff5d4f03@kernel.org \
--to=dlemoal@kernel.org \
--cc=jejb@linux.ibm.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=petr@tesarici.cz \
/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