OSDN Git Service

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)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 29 Jul 2022 19:45:37 +0000 (16:45 -0300)
commitaa7dfbb41b5a60ab90e244d6f586b8cb5c791c3e
treef5a6a861b427d71b0cb815226f6e9b7e65a46d50
parentb03b1ae2a3125d4475452e4f19f5d3a6e910ff6e
RDMA/srpt: Introduce a reference count in struct srpt_device

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