]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3163cf19fe6d161c7f62650a571f126806d1f667
treeb387d4fccaf638aea9ad816f220c356514a5f800
parent28dbebf56ec9272e8b01e3d984e99d4fcd3c1522
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: c3b2221ab081 ("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