]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: do not set queue->page_count to 0 if pc_sli4_params.wqpcnt is invalid
authorEwan D. Milne <emilne@redhat.com>
Thu, 13 Dec 2018 20:25:16 +0000 (15:25 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 19 Dec 2018 04:25:35 +0000 (23:25 -0500)
commit0dd1be9a9511492c8dfd9a0ab5da397dd29692ee
tree8cad48b5ecd80c9b76bbe93907b2a30f5e73c175
parentded529d928327b82e3ca441542870618987122c5
scsi: lpfc: do not set queue->page_count to 0 if pc_sli4_params.wqpcnt is invalid

Certain older adapters such as the OneConnect OCe10100 may not have a valid
wqpcnt value.  In this case, do not set queue->page_count to 0 in
lpfc_sli4_queue_alloc() as this will prevent the driver from initializing.

Fixes: eaf2692633 ("scsi: lpfc: NVME Initiator: Base modifications")
Cc: stable@vger.kernel.org # 4.11+
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c