]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Wait for inactive autogroups
authorPaul Blakey <paulb@mellanox.com>
Thu, 7 May 2020 09:01:39 +0000 (12:01 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 15 May 2020 22:44:22 +0000 (15:44 -0700)
commitf757c5d120f59e9529904be9c5b28f0b0b747643
treeee6b0d190954682356d0f8d3e76d1fa9355048af
parent6091d495e6ae1ff9304bc622770c5dad07de2ef0
net/mlx5: Wait for inactive autogroups

Currently, if one thread tries to add an entry to an autogrouped table
with no free matching group, while another thread is in the process of
creating a new matching autogroup, it doesn't wait for the new group
creation, and creates an unnecessary new autogroup.

Instead of skipping inactive, wait on the write lock of those groups.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c