]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Fix extraneous ref on sp's after adapter break
authorBill Kuzeja <William.Kuzeja@stratus.com>
Thu, 25 May 2017 19:26:31 +0000 (15:26 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Jun 2017 02:49:06 +0000 (22:49 -0400)
commit2d5c49d6548ba60f61178bfeb105c9fd1af00aae
treee155a7a397d95b866aeaf950831ae9035977fe93
parentd33ea112c412cad3a77c4bb09c099d206a89a546
scsi: qla2xxx: Fix extraneous ref on sp's after adapter break

Hung task timeouts can result if a qlogic board breaks unexpectedly
while running I/O. These tasks become hung because command srb reference
counts are not going to zero, hence the affected srbs and commands do
not get freed. This fix accounts for this extra reference in the srbs in
the case of a board failure.

Fixes: b4e35aacd4df ("qla2xxx: Disable the adapter and skip error recovery in case of register disconnect")
Signed-off-by: Bill Kuzeja <william.kuzeja@stratus.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c