diff options
author | Maor Gottlieb <maorg@mellanox.com> | 2020-04-30 22:21:40 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-05-01 12:15:38 -0700 |
commit | 64363e61c7bbcfa4c7d6697d96ef2e18fc311cf3 (patch) | |
tree | 254ca3b37da83f2aeda1d2b428a3970040fe7d89 /net/nsh | |
parent | 33720aaf8c2af5c0ff341a16b5048b9c7ecae569 (diff) |
net/mlx5: Change lag mutex lock to spin lock
The lag lock could be a spin lock, the critical section is short
and there is no need that the thread will sleep.
Change the lock that protects the LAG structure from mutex
to spin lock. It is required for next patch that need to
access this structure from context that we can't sleep.
In addition there is no need to hold this lock when query the
congestion counters.
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'net/nsh')
0 files changed, 0 insertions, 0 deletions