-
- Downloads
[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>
Showing
- drivers/s390/scsi/zfcp_dbf.c 15 additions, 13 deletionsdrivers/s390/scsi/zfcp_dbf.c
- drivers/s390/scsi/zfcp_dbf.h 6 additions, 6 deletionsdrivers/s390/scsi/zfcp_dbf.h
- drivers/s390/scsi/zfcp_def.h 19 additions, 15 deletionsdrivers/s390/scsi/zfcp_def.h
- drivers/s390/scsi/zfcp_erp.c 194 additions, 175 deletionsdrivers/s390/scsi/zfcp_erp.c
- drivers/s390/scsi/zfcp_ext.h 15 additions, 17 deletionsdrivers/s390/scsi/zfcp_ext.h
- drivers/s390/scsi/zfcp_fsf.c 140 additions, 139 deletionsdrivers/s390/scsi/zfcp_fsf.c
- drivers/s390/scsi/zfcp_scsi.c 52 additions, 62 deletionsdrivers/s390/scsi/zfcp_scsi.c
- drivers/s390/scsi/zfcp_sysfs.c 39 additions, 27 deletionsdrivers/s390/scsi/zfcp_sysfs.c
- drivers/s390/scsi/zfcp_unit.c 0 additions, 11 deletionsdrivers/s390/scsi/zfcp_unit.c
Loading
Please register or sign in to comment