]> www.infradead.org Git - users/dwmw2/linux.git/commit
RDMA/srpt: Introduce a reference count in struct srpt_device
authorBart Van Assche <bvanassche@acm.org>
Wed, 27 Jul 2022 19:34:14 +0000 (12:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:16:02 +0000 (15:16 +0200)
commitd14a44cf2919920c61496ff252240fbfc5551faf
tree5efad44ddada64847ca4f75957d49716d560cce5
parent204a8486d77510144a7743c4f09ac8c2c66b809e
RDMA/srpt: Introduce a reference count in struct srpt_device

[ Upstream commit aa7dfbb41b5a60ab90e244d6f586b8cb5c791c3e ]

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>
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/infiniband/ulp/srpt/ib_srpt.h