]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/srp: Remove the srp_host.released completion
authorBart Van Assche <bvanassche@acm.org>
Thu, 25 Aug 2022 21:38:58 +0000 (14:38 -0700)
committerLeon Romanovsky <leonro@nvidia.com>
Sun, 28 Aug 2022 10:02:12 +0000 (13:02 +0300)
commit1c0bffc00ac11775b9721a7bb606d8f8f34db92a
treebfcb17bdfb4544cbfb31b13eaec16504f2cd6078
parentcb172bd770c76cd603941964010479d08610ebd9
RDMA/srp: Remove the srp_host.released completion

Move the kfree(host) calls into srp_release_dev(). Convert a
device_unregister() call into a device_del() and a device_put() call.
Remove the host->released completion object. This patch prepares for
handling dev_set_name() failure in srp_add_port().

Link: https://lore.kernel.org/r/20220825213900.864587-3-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h