linux/drivers/s390/scsi
Christof Schmitt 5a7de559b4 [SCSI] zfcp: Register SCSI devices after successful fc_remote_port_add
When the successful return of an adisc is the final step to set the
port online, the registration of SCSI devices might be omitted. SCSI
devices that have been removed before (due to a short dev_loss_tmo
setting) might not be attached again.

The problem is that the registration of SCSI devices is done only
after erp has finished. The correct place would be after the call to
fc_remote_port_add to mimick the scan in the FC transport class.

Change the registration of SCSI devices to be triggered after the
fc_remote_port_add call. For the initial inquiry command to succeed,
the unit must also be open. If the unit reopen is still pending, the
inquiry command to the LUN will be deferred with DID_IMM_RETRY, so
there is no harm from this approach.

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-07-28 09:46:38 -05:00
..
Makefile [SCSI] zfcp: consolidate sysfs things into one file. 2008-07-12 08:22:35 -05:00
zfcp_aux.c [SCSI] zfcp: Register SCSI devices after successful fc_remote_port_add 2010-07-28 09:46:38 -05: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 [S390] avoid default_llseek in s390 drivers 2010-05-17 10:00:16 +02:00
zfcp_dbf.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
zfcp_dbf.h [SCSI] zfcp: Move scsi result tracing decision to zfcp_dbf.h 2010-02-17 17:46:31 -06:00
zfcp_def.h [SCSI] zfcp: Use status_read_buf_num provided by FCP channel 2010-05-02 15:42:33 -04:00
zfcp_erp.c [SCSI] zfcp: Register SCSI devices after successful fc_remote_port_add 2010-07-28 09:46:38 -05:00
zfcp_ext.h [SCSI] zfcp: Register SCSI devices after successful fc_remote_port_add 2010-07-28 09:46:38 -05:00
zfcp_fc.c [SCSI] zfcp: Zero memory for gpn_ft and adisc requests 2010-05-02 15:42:34 -04:00
zfcp_fc.h [SCSI] zfcp: Set hardware timeout as requested by BSG request. 2010-01-17 12:40:13 -06:00
zfcp_fsf.c [SCSI] zfcp: Update status read mempool 2010-07-21 15:05:09 -07:00
zfcp_fsf.h [SCSI] zfcp: Use status_read_buf_num provided by FCP channel 2010-05-02 15:42:33 -04:00
zfcp_qdio.c [SCSI] zfcp: Do not wait for SBALs on stopped queue 2010-07-21 15:05:07 -07:00
zfcp_qdio.h [SCSI] zfcp: Move sbale handling to zfcp_qdio files 2010-05-02 15:42:30 -04: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: Register SCSI devices after successful fc_remote_port_add 2010-07-28 09:46:38 -05:00
zfcp_sysfs.c [SCSI] zfcp: Register SCSI devices after successful fc_remote_port_add 2010-07-28 09:46:38 -05:00