Mike Christie 83bd5f16b1 scsi: iscsi: Add iscsi_cls_conn refcount helpers
[ Upstream commit b1d19e8c92cfb0ded180ef3376c20e130414e067 ]

There are a couple places where we could free the iscsi_cls_conn while it's
still in use. This adds some helpers to get/put a refcount on the struct
and converts an exiting user. Subsequent commits will then use the helpers
to fix 2 bugs in the eh code.

Link: https://lore.kernel.org/r/20210525181821.7617-11-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:21:11 +02:00
..
2016-07-13 22:04:27 -04:00
2016-07-20 19:49:41 -04:00
2016-01-27 20:36:10 +08:00
2016-02-23 21:27:02 -05:00
2016-04-04 12:07:41 -04:00
2015-11-09 17:11:57 -08:00
2014-07-17 22:07:37 +02:00
2018-01-23 19:57:04 +01:00
2015-05-18 13:35:56 -04:00