OSDN Git Service

RDMA/ucma: Remove closing and the close_wq
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 18 Aug 2020 12:05:26 +0000 (15:05 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 27 Aug 2020 11:38:16 +0000 (08:38 -0300)
commit657360d6c74148f8ade5a39430407d64aa157c38
treed7139c4451152ed267438d7c846bf4b4026ee6e1
parenta1d33b70dbbc2c331c788ae12d5d54ac36c6744d
RDMA/ucma: Remove closing and the close_wq

Use cancel_work_sync() to ensure that the wq is not running and simply
assign NULL to ctx->cm_id to indicate if the work ran or not. Delete the
close_wq since flush_workqueue() is no longer needed.

Link: https://lore.kernel.org/r/20200818120526.702120-15-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/ucma.c