linux-stable/drivers/s390/scsi
Christof Schmitt b62a8d9b45 [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit
This is the large change to switch from using the data in
zfcp_unit to zfcp_scsi_dev. Keeping everything working requires doing
the switch in one piece. To ensure that no code keeps using the data
in zfcp_unit, this patch also removes the data from zfcp_unit that is
now being replaced with zfcp_scsi_dev.

For zfcp, the scsi_device together with zfcp_scsi_dev exist from the
call of slave_alloc to the call of slave_destroy. The data in
zfcp_scsi_dev is initialized in zfcp_scsi_slave_alloc and the LUN is
opened; the final shutdown for the LUN is run from slave_destroy.

Where the scsi_device or zfcp_scsi_dev is needed, the pointer to the
scsi_device is passed as function argument and inside the function
converted to the pointer to zfcp_scsi_dev; this avoids back and forth
conversion betweeen scsi_device and zfcp_scsi_dev.

While changing the function arguments from zfcp_unit to scsi_device,
the functions names are renamed form "unit" to "lun". This is to have
a seperation between zfcp_scsi_dev/LUN and the zfcp_unit; only code
referring to the remaining configuration information in zfcp_unit
struct uses "unit".

Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-09-16 22:54:17 -04:00
..
Makefile [SCSI] zfcp: Move code for managing zfcp_unit devices to new file 2010-09-16 22:54:15 -04:00
zfcp_aux.c [SCSI] zfcp: Move code for managing zfcp_unit devices to new file 2010-09-16 22:54:15 -04:00
zfcp_ccw.c [SCSI] zfcp: Rename sysfs_device attribute to dev in zfcp_unit and zfcp_port 2010-02-17 17:46:30 -06:00
zfcp_cfdc.c [SCSI] zfcp: Use memdup_user and kstrdup 2010-07-28 09:48:45 -05:00
zfcp_dbf.c [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00
zfcp_dbf.h [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00
zfcp_def.h [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00
zfcp_erp.c [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00
zfcp_ext.h [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00
zfcp_fc.c [SCSI] zfcp: Post events through FC transport class 2010-07-28 09:48:52 -05:00
zfcp_fc.h [SCSI] zfcp: Introduce experimental support for DIF/DIX 2010-07-28 09:48:56 -05:00
zfcp_fsf.c [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00
zfcp_fsf.h [SCSI] zfcp: Introduce experimental support for DIF/DIX 2010-07-28 09:48:56 -05:00
zfcp_qdio.c [SCSI] zfcp: Trigger logging in the FCP channel on qdio error conditions 2010-07-28 09:48:58 -05:00
zfcp_qdio.h [SCSI] zfcp: Introduce experimental support for DIF/DIX 2010-07-28 09:48:56 -05:00
zfcp_reqlist.h [SCSI] zfcp: Move FSF request tracking code to new file 2010-02-17 17:46:19 -06:00
zfcp_scsi.c [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00
zfcp_sysfs.c [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00
zfcp_unit.c [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit 2010-09-16 22:54:17 -04:00