scsi: scsi_dh: Return SCSI_DH_XX error code from ->attach()
authorHannes Reinecke <hare@suse.de>
Wed, 20 Sep 2017 07:18:51 +0000 (09:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 25 Sep 2017 23:03:14 +0000 (19:03 -0400)
commit2a8f7a0344c8b068cf4b13f1bf4bdd65b8787d04
treef47c8b4be2bf668a3eece994a654d6a4b8e36a25
parentb7af62a945706e32b987f1dd0cc86bb41a8210c3
scsi: scsi_dh: Return SCSI_DH_XX error code from ->attach()

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 <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c
drivers/scsi/device_handler/scsi_dh_emc.c
drivers/scsi/device_handler/scsi_dh_hp_sw.c
drivers/scsi/device_handler/scsi_dh_rdac.c
drivers/scsi/scsi_dh.c