OSDN Git Service

scsi: megaraid_sas: Don't send FPIO to RL Bypass queue
authorChandrakanth Patil <chandrakanth.patil@broadcom.com>
Tue, 25 Jun 2019 11:04:25 +0000 (16:34 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Jun 2019 04:07:35 +0000 (00:07 -0400)
Firmware does not expect FastPath IO sent through Region Lock Bypass queue.
Though firmware never exposes such settings when fastpath IO can be sent to
RL bypass queue but it's safer to remove dead code which directs fastpath
IO to RL Bypass queue.

Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c

index 2e711b1..a765662 100644 (file)
@@ -2876,10 +2876,6 @@ megasas_build_ldio_fusion(struct megasas_instance *instance,
                        (MPI2_REQ_DESCRIPT_FLAGS_FP_IO
                         << MEGASAS_REQ_DESCRIPT_FLAGS_TYPE_SHIFT);
                if (instance->adapter_type == INVADER_SERIES) {
-                       if (rctx->reg_lock_flags == REGION_TYPE_UNUSED)
-                               cmd->request_desc->SCSIIO.RequestFlags =
-                                       (MEGASAS_REQ_DESCRIPT_FLAGS_NO_LOCK <<
-                                       MEGASAS_REQ_DESCRIPT_FLAGS_TYPE_SHIFT);
                        rctx->type = MPI2_TYPE_CUDA;
                        rctx->nseg = 0x1;
                        io_request->IoFlags |= cpu_to_le16(MPI25_SAS_DEVICE0_FLAGS_ENABLED_FAST_PATH);