]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Remove unnecessary RCU read-side critical section
authorIdo Schimmel <idosch@nvidia.com>
Sun, 14 Mar 2021 12:19:37 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 22:00:44 +0000 (15:00 -0700)
commit4e26b8840df0531713fd5027b1425596b4422432
treee8f7027f75db867c46fd19a7b4723f645d99135e
parentb8a09c2a46b3e2cfb3859e5b5d9ff44478f37a8f
mlxsw: spectrum: Remove unnecessary RCU read-side critical section

Since commit fb1daa17966b ("mlxsw: core: Increase scope of RCU read-side
critical section"), all Rx handlers are called from an RCU read-side
critical section.

Remove the unnecessary rcu_read_lock() / rcu_read_unlock().

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c