scsi: qedi: Mark all connections for recovery on link down event
authorNilesh Javali <njavali@marvell.com>
Tue, 8 Sep 2020 09:56:55 +0000 (02:56 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Sep 2020 02:40:23 +0000 (22:40 -0400)
commit4118879be3755b38171063dfd4a57611d4b20a83
treee111eee8054773c431c4290896c212dfb0ca31e0
parent5a2e69af16cecb30395964e117ba7f0e155a586d
scsi: qedi: Mark all connections for recovery on link down event

For short time cable pulls, the in-flight I/O to the firmware is never
cleaned up, resulting in the behaviour of stale I/O completion causing
list_del corruption and soft lockup of the system.

On link down event, mark all the connections for recovery, causing cleanup
of all the in-flight I/O immediately.

Link: https://lore.kernel.org/r/20200908095657.26821-7-mrangankar@marvell.com
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_main.c