Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6139308d authored by Swen Schillig's avatar Swen Schillig Committed by James Bottomley
Browse files

[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: default avatarSwen Schillig <swen@vnet.ibm.com>
Signed-off-by: default avatarChristof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 9528539c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);