Skip to content

Ensure that the SCSI error handler gets woken up

Bart Van Assche linux-scsi stable 2 versions – Applied

Status from this message: Applied to 4.16/scsi-queue. Thank you!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 10 repliesApplied
  2. v12 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Made it again safe to call scsi_eh_scmd_add() from interrupt context.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2Ensure that the SCSI error handler gets woken updrivers/scsi/hosts.c drivers/scsi/scsi_error.c drivers/scsi/scsi_lib.c +1 more+52 -137 replies
2/2Convert a source code comment into a runtime checkdrivers/scsi/scsi_error.c+2 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPavel TikhomirovStuart Hayes
1/2R-b T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Ensure that the SCSI error handler gets woken up

Hello Martin,

As reported by Pavel Tikhomirov it can happen that the SCSI error handler does not get woken up. This is very annoying because it results in a queue stall. The two patches in this series address this issue without acquiring the SCSI host lock in the hot path. Please consider these patches for kernel v4.16.

Thanks,

Bart.

Changes between v2 and v3:
- Made it again safe to call scsi_eh_scmd_add() from interrupt context.

Changes between v1 and v2:
- Ensure that host_lock is held while checking host_failed.
- Moved the lockdep_assert_held() change into a separate patch.

Bart Van Assche (2):
Ensure that the SCSI error handler gets woken up Convert a source code comment into a runtime check

 drivers/scsi/hosts.c      |  6 ++++++
 drivers/scsi/scsi_error.c | 21 ++++++++++++++++++---
 drivers/scsi/scsi_lib.c   | 39 ++++++++++++++++++++++++++++-----------
 include/scsi/scsi_host.h  |  2 ++
 4 files changed, 54 insertions(+), 14 deletions(-)
Signature · 1 line
2.15.0