Re: [PATCH 1/2] scsi_dh: Return SCSI_DH_XX error code from ->attach()

2017-09-20 Thread Johannes Thumshirn
Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Ke

[PATCH 1/2] scsi_dh: Return SCSI_DH_XX error code from ->attach()

2017-09-20 Thread Hannes Reinecke
Rather than having each device handler implementing their own error mapping have the ->attach() call return a SCSI_DH_XXX error code and implement the mapping in scsi_dh_handler_attach(). Suggested-by: Christoph Hellwig Signed-off-by: Hannes Reinecke --- drivers/scsi/device_handler/scsi_dh_alua