diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2008-12-19 16:56:53 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 11:24:35 -0600 |
commit | 1d3aab084a2b4d6c60c8478b3ddf5dd9391f6a32 (patch) | |
tree | 885fb4c2a72f885fb4a6b4c331ca706193357904 /drivers/s390/scsi/zfcp_aux.c | |
parent | 27c3f0a6e4521ba0ff6e76da54969f0bf430f53a (diff) | |
download | lwn-1d3aab084a2b4d6c60c8478b3ddf5dd9391f6a32.tar.gz lwn-1d3aab084a2b4d6c60c8478b3ddf5dd9391f6a32.zip |
[SCSI] zfcp: register with SCSI layer on ccw registration
Synchronize the registration and de-registration with the SCSI layer
at CCW registration, de-registration. Before we registered with the
SCSI layer on adapter activation. This way the reg and de-reg process
is in balance.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_aux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c index e529b55b3ce9..f0f49feaa34f 100644 --- a/drivers/s390/scsi/zfcp_aux.c +++ b/drivers/s390/scsi/zfcp_aux.c @@ -534,7 +534,8 @@ int zfcp_adapter_enqueue(struct ccw_device *ccw_device) zfcp_fc_nameserver_init(adapter); - return 0; + if (!zfcp_adapter_scsi_register(adapter)) + return 0; sysfs_failed: zfcp_adapter_debug_unregister(adapter); |