[PATCH 2/8] scsi: scsi_dh_alua: Do not attach for SCSI native multipath

From: John Garry

Date: Tue Mar 10 2026 - 08:01:33 EST


For native SCSI multipath, we don't want device handlers involved, so do
not attach in this instance.

For now, SCSI multipath will not maintain sdev->access_state.

Signed-off-by: John Garry <john.g.garry@xxxxxxxxxx>
---
drivers/scsi/device_handler/scsi_dh_alua.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c
index 6fd89ae33059f..7b360e7f11a6d 100644
--- a/drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
@@ -1239,6 +1239,8 @@ static int alua_bus_attach(struct scsi_device *sdev)
struct alua_dh_data *h;
int err;

+ if (sdev->scsi_mpath_dev)
+ return SCSI_DH_DEV_UNSUPP;
h = kzalloc(sizeof(*h) , GFP_KERNEL);
if (!h)
return SCSI_DH_NOMEM;
--
2.43.5