RDMA/ucma: Remove unnecessary locking of file->ctx_list in close
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 18 Aug 2020 12:05:14 +0000 (15:05 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 27 Aug 2020 11:38:13 +0000 (08:38 -0300)
commit07e266a7753d952978f317aa2b206b4da4769567
treeee5ff2bc80acfb300e0be319b9c0e80c64abbb04
parentca2968c1efcbeb547906cf6211874ec881beafec
RDMA/ucma: Remove unnecessary locking of file->ctx_list in close

During the file_operations release function it is already not possible
that write() can be running concurrently, remove the extra locking
around the ctx_list.

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