linux-stable/drivers/scsi/ibmvscsi
Tyrel Datwyler 62fc266148 scsi: ibmvfc: Make ibmvfc_wait_for_ops() MQ aware
During MQ enablement of the ibmvfc driver ibmvfc_wait_for_ops() was
missed. This function is responsible for waiting on commands to complete
that match a certain criteria such as LUN or cancel key. The implementation
as is only scans the CRQ for events ignoring any sub-queues and as a result
will exit successfully without doing anything when operating in MQ
channelized mode.

Check the MQ and channel use flags to determine which queues are
applicable, and scan each queue accordingly. Note in MQ mode SCSI commands
are only issued down sub-queues and the CRQ is only used for driver
specific management commands. As such the CRQ events are ignored when
operating in MQ mode with channels.

Link: https://lore.kernel.org/r/20210319205029.312969-3-tyreld@linux.ibm.com
Fixes: 9000cb998b ("scsi: ibmvfc: Enable MQ and set reasonable defaults")
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-03-24 21:42:30 -04:00
..
ibmvfc.c scsi: ibmvfc: Make ibmvfc_wait_for_ops() MQ aware 2021-03-24 21:42:30 -04:00
ibmvfc.h scsi: ibmvfc: Provide modules parameters for MQ settings 2021-01-14 22:31:04 -05:00
ibmvscsi.c scsi: ibmvscsi: Fix potential race after loss of transport 2020-10-26 17:14:40 -04:00
ibmvscsi.h SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00