OSDN Git Service

scsi: megaraid_sas: Send all non-RW I/Os for TYPE_ENCLOSURE device through firmware
authorChandrakanth Patil <chandrakanth.patil@broadcom.com>
Fri, 28 May 2021 13:13:03 +0000 (18:43 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Jun 2021 05:06:33 +0000 (01:06 -0400)
commit79db830162b733f5f3ee80f0673eeeb0245fe38b
tree0fd9321ac7105a1352be9b8b2a972fdb7f57d88e
parent9fc4abfe5a5fc9fabce41b9d2ba8425ef498b32c
scsi: megaraid_sas: Send all non-RW I/Os for TYPE_ENCLOSURE device through firmware

The driver issues all non-ReadWrite I/Os for TYPE_ENCLOSURE devices through
the fast path with invalid dev handle. Fast path in turn directs all the
I/Os to the firmware. As firmware stopped handling those I/Os from SAS3.5
generation of controllers (Ventura generation and onwards) this will lead
to I/O failures.

Switch the driver to issue all the non-ReadWrite I/Os for TYPE_ENCLOSURE
devices directly to firmware for SAS3.5 generation of controllers and
later.

Link: https://lore.kernel.org/r/20210528131307.25683-2-chandrakanth.patil@broadcom.com
Cc: <stable@vger.kernel.org> # v5.11+
Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c