]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Do not hold mutex while reading table constants
authorParav Pandit <parav@nvidia.com>
Wed, 24 Feb 2021 09:04:19 +0000 (11:04 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Apr 2021 23:13:05 +0000 (16:13 -0700)
commiteb6c3389cfa5a7196b9de5fe5932c1a12fcff44e
treef949d4d207ca5bfb7517b0edf3e93bc9506e3520
parent3a8e1dd747cdfa4298f36624944410440ca136a5
net/mlx5: Do not hold mutex while reading table constants

Table max_size, min and max rate are constants initialized while table
is created. Reading it doesn't need to hold a table mutex. Hence, read
them without holding table mutex.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/rl.c