RDMA/ucma: Narrow file->mut in ucma_event_handler()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 18 Aug 2020 12:05:24 +0000 (15:05 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 27 Aug 2020 11:38:16 +0000 (08:38 -0300)
commit310ca1a7dcd1fd430f0d72e774d480cc200b4fdc
treeb8057e00e25a2adf341140f478ef1c4d0a32582a
parent26c15dec490c3a65f4eba6704c6648c299adb7a6
RDMA/ucma: Narrow file->mut in ucma_event_handler()

Since the backlog is now an atomic the file->mut is now only protecting
the event_list and ctx_list. Narrow its scope to make it clear

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