summaryrefslogtreecommitdiff
path: root/drivers/ufs
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-11-15 22:33:43 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-11-25 03:23:44 +0300
commit10b53db2db8dfda84b25833043f2b63123572af6 (patch)
treefa620f73a3687e516fe57536d5195619100b3f17 /drivers/ufs
parent0349be31e4ffc79723e46e2e373569567b06347b (diff)
downloadlinux-10b53db2db8dfda84b25833043f2b63123572af6.tar.xz
scsi: core: Add a precondition check in scsi_eh_scmd_add()
Calling scsi_eh_scmd_add() may cause the error handler never to be woken up because this may result in shost->host_failed to become larger than scsi_host_busy(shost). Hence complain if scsi_eh_scmd_add() is called after SCMD_STATE_INFLIGHT has been cleared. Cc: Hannes Reinecke <hare@suse.de> Cc: Damien Le Moal <damien.lemoal@opensource.wdc.com> Cc: Mike Christie <michael.christie@oracle.com> Cc: John Garry <john.g.garry@oracle.com> Cc: Ming Lei <ming.lei@redhat.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20231115193343.2262013-1-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs')
0 files changed, 0 insertions, 0 deletions