summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/mlx5_ifc.h
diff options
context:
space:
mode:
authorMatthew Wilcox2019-06-20 09:03:47 +0200
committerSaeed Mahameed2019-06-25 01:44:40 +0200
commit792c4e9d0bbb53b34bf1c07c2ef25609d746c57d (patch)
tree9b634d93c26bbc9124dc45271e1fe021008d2ec1 /include/linux/mlx5/mlx5_ifc.h
parentnet/mlx5: Expose eswitch encap mode (diff)
downloadkernel-qcow2-linux-792c4e9d0bbb53b34bf1c07c2ef25609d746c57d.tar.gz
kernel-qcow2-linux-792c4e9d0bbb53b34bf1c07c2ef25609d746c57d.tar.xz
kernel-qcow2-linux-792c4e9d0bbb53b34bf1c07c2ef25609d746c57d.zip
net/mlx5: Convert mkey_table to XArray
The lock protecting the data structure does not need to be an rwlock. The only read access to the lock is in an error path, and if that's limiting your scalability, you have bigger performance problems. Eliminate mlx5_mkey_table in favour of using the xarray directly. reg_mr_callback must use GFP_ATOMIC for allocating XArray nodes as it may be called in interrupt context. This also fixes a minor bug where SRCU locking was being used on the radix tree read side, when RCU was needed too. Signed-off-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/mlx5_ifc.h')
0 files changed, 0 insertions, 0 deletions