RDMA/srpt: Introduce a reference count in struct srpt_device

[ Upstream commit aa7dfbb41b ]

This will be used to keep struct srpt_device around as long as either the
RDMA port exists or a LIO target port is associated with the struct
srpt_device.

Link: https://lore.kernel.org/r/20220727193415.1583860-3-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Bart Van Assche 2022-07-27 12:34:14 -07:00 • committed by Greg Kroah-Hartman
commit 7c448f8290
2 changed files with 17 additions and 2 deletions