linux/drivers/scsi/ibmvscsi
Tyrel Datwyler 443cc4b45c scsi: ibmvfc: Simplify handling of sub-CRQ initialization
If ibmvfc_init_sub_crqs() fails ibmvfc_probe() simply parrots registration
failure reported elsewhere, and futher vhost->scsi_scrq.scrq == NULL is
indication enough to the driver that it has no sub-CRQs available. The
mq_enabled check can also be moved into ibmvfc_init_sub_crqs() such that
each caller doesn't have to gate the call with a mq_enabled check. Finally,
in the case of sub-CRQ setup failure setting do_enquiry can be turned off
to putting the driver into single queue fallback mode.

The aforementioned changes also simplify the next patch in the series that
fixes a hard reset issue, by tying a sub-CRQ setup failure and do_enquiry
logic into ibmvfc_init_sub_crqs().

Link: https://lore.kernel.org/r/20210302230543.9905-2-tyreld@linux.ibm.com
Reviewed-by: Brian King <brking@linux.ibm.com>
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-03-04 17:20:04 -05:00
..
ibmvfc.c scsi: ibmvfc: Simplify handling of sub-CRQ initialization 2021-03-04 17:20:04 -05: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