From: Swen Schillig Date: Thu, 21 Aug 2008 11:43:36 +0000 (+0200) Subject: [SCSI] zfcp: channel cannot be detached due to refcount imbalance X-Git-Tag: v2.6.27-rc7~55^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6139308dca9437975125290698cb9306240f525c;p=karo-tx-linux.git [SCSI] zfcp: channel cannot be detached due to refcount imbalance 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 Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley --- diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index 05e6b09c48f3..56196c98c07b 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c @@ -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);