Files
linux/drivers
Steffen Maier 9745d6cb3f SCSI: zfcp: restore refcount check on port_remove
commit d99b601b63 upstream.

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>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-13 05:28:09 +09:00
..
2012-06-10 00:32:58 +09:00
2011-05-26 17:12:32 -07:00
2012-01-25 17:24:54 -08:00
2012-01-25 17:24:56 -08:00
2011-05-06 09:27:55 -07:00
2011-06-14 15:15:25 +09:00
2012-01-06 14:13:48 -08:00
2012-10-07 08:27:26 -07:00
2012-04-27 09:51:06 -07:00
2012-07-16 08:47:51 -07:00
2011-11-21 14:31:14 -08:00
2012-10-02 09:47:27 -07:00