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)
commit0766fcaa1e06d5b5b04f734b788c1556022a9051
treebfcb17bdfb4544cbfb31b13eaec16504f2cd6078
parentc8e4c23976554fb9dda1658bd1a3914b202815cd
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