]> 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)
commit538acb30daa78a108fe5b1159a1a7e76f787b5b1
treee8f7027f75db867c46fd19a7b4723f645d99135e
parent7d81ef1700050dd2d59ff40b4bd53e6414a82480
mlxsw: spectrum: Remove unnecessary RCU read-side critical section

Since commit 8682ed353a42 ("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