]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix io lost on host resets
authorJames Smart <jsmart2021@gmail.com>
Tue, 12 Mar 2019 23:30:19 +0000 (16:30 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 17:15:09 +0000 (13:15 -0400)
commit5af904c5ecdd3a536784f0043f12f5cfd784d004
treefde56d7651dbcae59f64bdc9f731601c9b678ab5
parent41ac0e0fd56f62b664f0a60cb7ba1f49ca746732
scsi: lpfc: Fix io lost on host resets

If the driver undergoes repeated host resets it starts losing exchange
structures and eventually returns SCSI_MLQUEUE_HOST_BUSY and does not
recover. The offline path is not reclaiming the outstanding ios on the fcp
pring txcmplq before calling lpfc_destroy_multixripool, which causes the
txmcplq to be reinit and the resources lost.

Flush the fcp rings before destroying the multixripools.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c