net/mlx5: Fix possible deadlock from lockdep when adding fte to fg
authorRoi Dayan <roid@mellanox.com>
Mon, 20 Aug 2018 08:43:03 +0000 (11:43 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Sep 2018 00:08:34 +0000 (17:08 -0700)
commitad9421e36a77056a4f095d49b9605e80b4d216ed
treeb387d4fccaf638aea9ad816f220c356514a5f800
parentfc433829f9a29530d492f0eb20804ac5e6967204
net/mlx5: Fix possible deadlock from lockdep when adding fte to fg

This is a false positive report due to incorrect nested lock
annotations as we lock multiple fgs with the same subclass.
Instead of locking all fgs only lock the one being used as was
done before.

Fixes: bd71b08ec2ee ("net/mlx5: Support multiple updates of steering rules in parallel")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c