[PATCH 0/2] Fix kernel panic in scsi_queue_rq()
From: Wenchao Hao
Date: Mon May 15 2023 - 03:02:20 EST
'cfee29ffb45b ("scsi: core: Do not increase scsi_device's iorequest_cnt
if dispatch failed")' introduce bug which would cause kernel panic.
So revert the changes and fix the origin issue by decreasing the
iorequest_cnt if scsi_dispatch_cmd return failed.
Wenchao Hao (2):
Revert "scsi: core: Do not increase scsi_device's iorequest_cnt if
dispatch failed"
scsi: core: decrease scsi_device's iorequest_cnt if dispatch failed
drivers/scsi/scsi_lib.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
2.32.0