linux/drivers/s390
Steffen Maier d99b601b63 [SCSI] zfcp: restore refcount check on port_remove
Upstream commit f3450c7b91
"[SCSI] zfcp: Replace local reference counting with common kref"
accidentally dropped a reference count check before tearing down
zfcp_ports that are potentially in use by zfcp_units.
Even remote ports in use can be removed causing
unreachable garbage objects zfcp_ports with zfcp_units.
Thus units won't come back even after a manual port_rescan.
The kref of zfcp_port->dev.kobj is already used by the driver core.
We cannot re-use it to track the number of zfcp_units.
Re-introduce our own counter for units per port
and check on port_remove.

Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: <stable@vger.kernel.org> #2.6.33+
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-09-24 12:11:02 +04:00
..
block s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
char s390/sclp_sdias: Add missing break and "fall through" 2012-08-08 07:32:55 -07:00
cio s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
crypto s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
kvm KVM updates for the 3.6 merge window 2012-07-24 12:01:20 -07:00
net qeth: repair crash in qeth_l3_vlan_rx_kill_vid() 2012-07-25 15:24:13 -07:00
scsi [SCSI] zfcp: restore refcount check on port_remove 2012-09-24 12:11:02 +04:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00