summaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fsf.c
diff options
context:
space:
mode:
authorChristof Schmitt2008-12-19 16:56:59 +0100
committerJames Bottomley2008-12-29 18:38:28 +0100
commitb98478d71b0fea6d35f96069612d92b76013589f (patch)
tree777baa61dd1017d086e8a4dd3b3b9079a1116f39 /drivers/s390/scsi/zfcp_fsf.c
parent[SCSI] zfcp: Simplify mask lookups for incoming RSCNs (diff)
downloadkernel-qcow2-linux-b98478d71b0fea6d35f96069612d92b76013589f.tar.gz
kernel-qcow2-linux-b98478d71b0fea6d35f96069612d92b76013589f.tar.xz
kernel-qcow2-linux-b98478d71b0fea6d35f96069612d92b76013589f.zip
[SCSI] zfcp: remove DID_DID flag
The port flag DID_DID indicates whether we know the current id of the port. This is always set in parallel. Since the id 0 is invalid (because the port id 0 is invalid) we can remove the DID_DID flag: d_id of 0 indicates an invalid d_id != 0 is a valid one. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Acked-by: Felix Beck <felix@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 878b8f86ddc7..17620ecda335 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -1442,8 +1442,7 @@ static void zfcp_fsf_open_port_handler(struct zfcp_fsf_req *req)
plogi = (struct fsf_plogi *) req->qtcb->bottom.support.els;
if (req->qtcb->bottom.support.els1_length >= sizeof(*plogi)) {
if (plogi->serv_param.wwpn != port->wwpn)
- atomic_clear_mask(ZFCP_STATUS_PORT_DID_DID,
- &port->status);
+ port->d_id = 0;
else {
port->wwnn = plogi->serv_param.wwnn;
zfcp_fc_plogi_evaluate(port, plogi);