From: Bart Van Assche <bvanassche@acm.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-scsi@vger.kernel.org,
Martin Kepplinger <martin.kepplinger@puri.sm>,
Can Guo <cang@codeaurora.org>,
Bart Van Assche <bvanassche@acm.org>
Subject: [PATCH RFC 0/6] Fix a deadlock in the SCSI power management code
Date: Sun, 30 Aug 2020 19:53:51 -0700 [thread overview]
Message-ID: <20200831025357.32700-1-bvanassche@acm.org> (raw)
Recently Martin Kepplinger reported a problem with the SCSI runtime PM
code. Alan Stern root-caused the reported deadlock. This patch series is
an attempt to fix that deadlock. These patches compile but have not yet
been tested.
Bart Van Assche (6):
ide: Do not set the RQF_PREEMPT flag for sense requests
scsi: Remove an incorrect comment
scsi: Pass a request queue pointer to __scsi_execute()
scsi_transport_spi: Make spi_execute() accept a request queue pointer
scsi_transport_spi: Freeze request queues instead of quiescing
block, scsi, ide: Only submit power management requests in state
RPM_SUSPENDED
block/blk-core.c | 6 +-
block/blk-mq-debugfs.c | 1 -
block/blk-mq.c | 4 +-
drivers/ide/ide-atapi.c | 1 -
drivers/ide/ide-io.c | 3 +-
drivers/ide/ide-pm.c | 2 +-
drivers/scsi/scsi_lib.c | 61 ++++++++-------
drivers/scsi/scsi_priv.h | 2 +
drivers/scsi/scsi_transport_spi.c | 123 +++++++++++++++++-------------
include/linux/blk-mq.h | 4 +-
include/linux/blkdev.h | 6 +-
include/scsi/scsi_device.h | 16 ++--
12 files changed, 120 insertions(+), 109 deletions(-)
next reply other threads:[~2020-08-31 2:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-31 2:53 Bart Van Assche [this message]
2020-08-31 2:53 ` [PATCH RFC 1/6] ide: Do not set the RQF_PREEMPT flag for sense requests Bart Van Assche
2020-08-31 2:53 ` [PATCH RFC 2/6] scsi: Remove an incorrect comment Bart Van Assche
2020-08-31 2:53 ` [PATCH RFC 3/6] scsi: Pass a request queue pointer to __scsi_execute() Bart Van Assche
2020-08-31 2:53 ` [PATCH RFC 4/6] scsi_transport_spi: Make spi_execute() accept a request queue pointer Bart Van Assche
2020-08-31 2:53 ` [PATCH RFC 5/6] scsi_transport_spi: Freeze request queues instead of quiescing Bart Van Assche
2020-09-03 1:39 ` Alan Stern
2020-08-31 2:53 ` [PATCH RFC 6/6] block, scsi, ide: Only submit power management requests in state RPM_SUSPENDED Bart Van Assche
2020-08-31 18:25 ` Alan Stern
2020-09-01 5:00 ` Bart Van Assche
2020-09-01 14:50 ` Alan Stern
2020-08-31 9:09 ` [PATCH RFC 0/6] Fix a deadlock in the SCSI power management code Martin Kepplinger
2020-09-01 3:55 ` Bart Van Assche
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=20200831025357.32700-1-bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=cang@codeaurora.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.kepplinger@puri.sm \
--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