]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Grab rtnl lock on heavy flush when calling ndo_open/stop
authorAlex Vesker <valex@mellanox.com>
Tue, 10 Oct 2017 07:36:41 +0000 (10:36 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 14 Oct 2017 18:22:08 +0000 (11:22 -0700)
commite989d55a7df301c1ef8354be1d1774f7cd1c21cd
tree6dd3d2b3e33d16c1261a78a61f78ab86d0954198
parent0d67bdd1ab50aee35896ff137bd9e6e4db31d582
IB/ipoib: Grab rtnl lock on heavy flush when calling ndo_open/stop

When ndo_open and ndo_stop are called RTNL lock should be held.
In this specific case ipoib_ib_dev_open calls the offloaded ndo_open
which re-sets the number of TX queue assuming RTNL lock is held.
Since RTNL lock is not held, RTNL assert will fail.

Signed-off-by: Alex Vesker <valex@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c