]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: smartpqi: Correct request leakage during reset operations
authorMurthy Bhat <Murthy.Bhat@microchip.com>
Thu, 11 Mar 2021 20:15:03 +0000 (14:15 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Apr 2021 03:02:28 +0000 (23:02 -0400)
commit4398d84f8de957816c7083d29da55fe4dd02d9c2
tree682abfe035a47af41621b87bc3550aa2200c45e8
parentbd6c7ef1cb1e094a771752fbdcb3ac8ac8dede58
scsi: smartpqi: Correct request leakage during reset operations

While failing queued I/Os in TMF path, there was a request leak and hence
stale entries in request pool with ref count being non-zero. In shutdown
path we have a BUG_ON to catch stuck I/O either in firmware or in the
driver. The stale requests caused a system crash. The I/O request pool
leakage also lead to a significant performance drop.

Link: https://lore.kernel.org/r/161549370379.25025.12793264112620796062.stgit@brunhilda
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Murthy Bhat <Murthy.Bhat@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c