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 <[email protected]> --- 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

