Skip to content

Commit 2bffc53

Browse files
jpirkodavem330
authored andcommitted
mlxsw: spectrum_acl: Don't take mutex in mlxsw_sp_acl_tcam_vregion_rehash_work()
Other mutexes are taking care of proper locking for this, no longer needed to take RTNL mutex here. Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c70b132 commit 2bffc53

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,12 +732,7 @@ static void mlxsw_sp_acl_tcam_vregion_rehash_work(struct work_struct *work)
732732
container_of(work, struct mlxsw_sp_acl_tcam_vregion,
733733
rehash_dw.work);
734734

735-
/* TODO: Take rtnl lock here as the rest of the code counts on it
736-
* now. Later, this should be replaced by per-vregion lock.
737-
*/
738-
rtnl_lock();
739735
mlxsw_sp_acl_tcam_vregion_rehash(vregion->mlxsw_sp, vregion);
740-
rtnl_unlock();
741736
mlxsw_sp_acl_tcam_vregion_rehash_work_schedule(vregion);
742737
}
743738

0 commit comments

Comments
 (0)