]> asedeno.scripts.mit.edu Git - linux.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)
commitb4b678b06f6eef18bff44a338c01870234db0bc9
tree6dd3d2b3e33d16c1261a78a61f78ab86d0954198
parentdae37456c8ac3afe8d5f306717f2b75ed5ca38d9
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