[SCSI] zfcp: channel cannot be detached due to refcount imbalance
authorSwen Schillig <swen@vnet.ibm.com>
Thu, 21 Aug 2008 11:43:36 +0000 (13:43 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 29 Aug 2008 14:04:52 +0000 (09:04 -0500)
Due to an imbalance of the nameserver refcounting, channel devices
couldn't be take offline anymore after the channel was activated.

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>
drivers/s390/scsi/zfcp_fc.c

index 05e6b09c48f38f6286687847a9864d5d3b74b846..56196c98c07b417f060e44dfb6c8a2dce2543e89 100644 (file)
@@ -352,7 +352,6 @@ static int zfcp_scan_get_nameserver(struct zfcp_adapter *adapter)
                if (ret)
                        return ret;
                zfcp_erp_wait(adapter);
-               zfcp_port_put(adapter->nameserver_port);
        }
        return !atomic_test_mask(ZFCP_STATUS_COMMON_UNBLOCKED,
                                  &adapter->nameserver_port->status);