scsi: handle more device handler setup/teardown in common code
authorChristoph Hellwig <hch@lst.de>
Sun, 14 Sep 2014 18:08:21 +0000 (11:08 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:19:36 +0000 (11:19 +0100)
commit1d5203284d8acbdfdf9b478d434450b34f338f28
treed92c80714458eb41581d4ff45c7ffb4e93375e7e
parent1f12ffa51479741db7c4ac1b7abc21662e4ce119
scsi: handle more device handler setup/teardown in common code

Move all code to set up and tear down sdev->scsi_dh_data to common code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/device_handler/scsi_dh.c
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
include/scsi/scsi_device.h