scsi_dh_alua: Attach to UNAVAILABLE/OFFLINE AAS devices
PATCH 1/1 scsi_dh_alua: Attach to UNAVAILABLE/OFFLINE AAS devices
The SCSI ALUA handler currently fails to attach to devices reporting an UNAVAILABLE/OFFLINE AAS. But given that an UNAVAILABLE/OFFLINE AAS can transition to other states like ACTIVE/OPTIMIZED, ACTIVE/NON-OPTIMIZED, etc. as per SPC4, this ALUA handler behavior should be rectified so as to attach to devices which also report an UNAVAILABLE/OFFLINE AAS.
The below patch enables the same.
--- drivers/scsi/device_handler/scsi_dh_alua.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/device_handler/scsi_dh_alua.c +1 -1
@@ -782,7 +782,7 @@ static int alua_bus_attach(struct scsi_device *sdev) h->sdev = sdev; err =alua_initialize (sdev, h); -if (err !=SCSI_DH_OK ) +if ((err !=SCSI_DH_OK ) && (err !=SCSI_DH_DEV_OFFLINED )) goto failed;if (!try_module_get (THIS_MODULE ))
Signature · 1 line
1.6.3.3
Quoted 8 lines · Martin George
The SCSI ALUA handler currently fails to attach to devices reporting an UNAVAILABLE/OFFLINE AAS. But given that an UNAVAILABLE/OFFLINE AAS can transition to other states like ACTIVE/OPTIMIZED, ACTIVE/NON-OPTIMIZED, etc. as per SPC4, this ALUA handler behavior should be rectified so as to attach to devices which also report an UNAVAILABLE/OFFLINE AAS.
This makes sense to me. It reports it supports alua, so it seems that we should attach.
Quoted 11 lines · Martin George
The SCSI ALUA handler currently fails to attach to devices reporting an UNAVAILABLE/OFFLINE AAS. But given that an UNAVAILABLE/OFFLINE AAS can transition to other states like ACTIVE/OPTIMIZED, ACTIVE/NON-OPTIMIZED, etc. as per SPC4, this ALUA handler behavior should be rectified so as to attach to devices which also report an UNAVAILABLE/OFFLINE AAS.
The below patch enables the same.
Signed-off-by Martin George <[email protected]>
Thanks
Nikanth
Quoted 17 lines
--- drivers/scsi/device_handler/scsi_dh_alua.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)(quoted diff) +0
-0
b/drivers/scsi/device_handler/scsi_dh_alua.cindex 42fe529..6fec9fe 100644drivers/scsi/device_handler/scsi_dh_alua.c +1
-1@@ -782,7 +782,7 @@ static int alua_bus_attach(struct scsi_device *sdev) h->sdev = sdev; err =alua_initialize (sdev, h); -if (err !=SCSI_DH_OK ) +if ((err !=SCSI_DH_OK ) && (err !=SCSI_DH_DEV_OFFLINED )) goto failed;if (!try_module_get (THIS_MODULE ))
Quoted 11 lines · Martin George
The SCSI ALUA handler currently fails to attach to devices reporting an UNAVAILABLE/OFFLINE AAS. But given that an UNAVAILABLE/OFFLINE AAS can transition to other states like ACTIVE/OPTIMIZED, ACTIVE/NON-OPTIMIZED, etc. as per SPC4, this ALUA handler behavior should be rectified so as to attach to devices which also report an UNAVAILABLE/OFFLINE AAS.
The below patch enables the same.
Signed-off-by Martin George<[email protected]>
Patch is correct. Even a path in state 'UNAVAILABLE' or 'OFFLINE' responds to ALUA commands and thus should be handle by the alua device_handler.
Cheers,
Hannes
Signature · 8 lines
Dr. Hannes Reinecke zSeries & Storage [email protected] +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html