]> 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)
commitfb170e9d8e871af4253382d5824116d741e5fd48
tree6dd3d2b3e33d16c1261a78a61f78ab86d0954198
parente1f45452641ddd856ac947e3bb1f624d1be8f580
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