mbox series

[0/3] Avoid that .queuecommand() gets called for a quiesced SCSI device

Message ID 20190605201435.233701-1-bvanassche@acm.org (mailing list archive)
Headers show
Series Avoid that .queuecommand() gets called for a quiesced SCSI device | expand

Message

Bart Van Assche June 5, 2019, 8:14 p.m. UTC
Hi Martin,

As explained in a recent LSF/MM topic proposal, it can happen that the SCSI
error handler calls .queuecommand() for a blocked SCSI device. SCSI LLDs do
not expect this. Hence this patch series. Please consider this series for
kernel v5.3.

Thanks,

Bart.

Changes compared to v2:
- Added a patch that converts SDEV_BLOCK into SDEV_QUIESCE for requests
  received through sysfs to change the SCSI device state.

Changes compared to v1:
- Wait on SDEV_BLOCK instead of SDEV_QUIESCE in the SCSI error handler.

Bart Van Assche (3):
  scsi: Do not allow user space to change the SCSI device state into
    SDEV_BLOCK
  scsi: Avoid that .queuecommand() gets called for a quiesced SCSI
    device
  RDMA/srp: Fix a sleep-in-invalid-context bug

 drivers/infiniband/ulp/srp/ib_srp.c | 21 ++-------------------
 drivers/scsi/scsi_error.c           | 26 ++++++++++++++++++++++++--
 drivers/scsi/scsi_sysfs.c           |  7 +++++++
 3 files changed, 33 insertions(+), 21 deletions(-)