]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
RDMA/mlx5: Replace spinlock protected write with atomic var
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 10 Mar 2020 08:22:29 +0000 (10:22 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 13 Mar 2020 14:08:00 +0000 (11:08 -0300)
commitf743ff3b37dfc8e8cf4a32d4254cddd5f0f1add8
tree35b67ff00760c5442fb33691cdf308f0bcda1c99
parenta3cfdd3928113012d0f2c5353277f4e27878a663
RDMA/mlx5: Replace spinlock protected write with atomic var

mkey variant calculation was spinlock protected to make it atomic, replace
that with one atomic variable.

Link: https://lore.kernel.org/r/20200310082238.239865-4-leon@kernel.org
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c