]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Fix exchange oversubscription
authorQuinn Tran <qutran@marvell.com>
Mon, 19 Dec 2022 11:07:41 +0000 (03:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:12 +0000 (09:33 +0100)
commit6bd02b98c3b1a37eee26035345b9ec8827bab477
tree7d8365f6101a6de55b6a19f64015b6e7b75e9bad
parentb1b14929c4769e8c6bb9fe55787f5c317290958a
scsi: qla2xxx: Fix exchange oversubscription

[ Upstream commit a14902637334f0bf755def461fc2498079c80c69 ]

In large environment, it is possible to experience command timeout and
escalation of path recovery. Currently the driver does not track the number
of exchanges/commands sent to FW. If there is a delay for commands at the
head of the queue, then this will create back pressure for commands at the
back of the queue.

Check for exchange availability before command submission.

Fixes: 65d19cfd6b3b ("scsi: qla2xxx: Add IOCB resource tracking")
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_edif.c
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_inline.h
drivers/scsi/qla2xxx/qla_iocb.c
drivers/scsi/qla2xxx/qla_isr.c
drivers/scsi/qla2xxx/qla_nvme.c