net/mlx5: Replace fs_node mutex with reader/writer semaphore
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 27 Aug 2017 06:07:44 +0000 (09:07 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 26 Sep 2017 17:52:03 +0000 (20:52 +0300)
commitc7784b1c8ab3f44dc2e643a8feb77584792c9108
treea49472097536b895195ecf02f855a5c23d663fc8
parent19f100fef4ad46f21cfdfb1eeeb63fc38c2e57f1
net/mlx5: Replace fs_node mutex with reader/writer semaphore

Currently, steering object is protected by mutex lock, replace
the mutex lock with reader/writer semaphore .
In this patch we still use only write semaphore. In downstream
patches we will switch part of the write locks to read locks.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h