]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ucma: Change backlog into an atomic
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 18 Aug 2020 12:05:23 +0000 (15:05 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 27 Aug 2020 11:38:16 +0000 (08:38 -0300)
commitc075b6ca4260c697240c6cc028d6abba93652151
treeba5c6ab32a6711bbf49afc7c1fb18bee8982c648
parent0299b85026b33a5e75a496b004ede4f6f5c89bab
RDMA/ucma: Change backlog into an atomic

There is no reason to grab the file->mut just to do this inc/dec work. Use
an atomic.

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