File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
drivers/infiniband/ulp/ipoib Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1203,13 +1203,10 @@ static void __ipoib_ib_dev_flush(struct ipoib_dev_priv *priv,
12031203 ipoib_ib_dev_down (dev );
12041204
12051205 if (level == IPOIB_FLUSH_HEAVY ) {
1206- rtnl_lock ();
12071206 if (test_bit (IPOIB_FLAG_INITIALIZED , & priv -> flags ))
12081207 ipoib_ib_dev_stop (dev );
12091208
1210- result = ipoib_ib_dev_open (dev );
1211- rtnl_unlock ();
1212- if (result )
1209+ if (ipoib_ib_dev_open (dev ))
12131210 return ;
12141211
12151212 if (netif_queue_stopped (dev ))
@@ -1249,7 +1246,9 @@ void ipoib_ib_dev_flush_heavy(struct work_struct *work)
12491246 struct ipoib_dev_priv * priv =
12501247 container_of (work , struct ipoib_dev_priv , flush_heavy );
12511248
1249+ rtnl_lock ();
12521250 __ipoib_ib_dev_flush (priv , IPOIB_FLUSH_HEAVY , 0 );
1251+ rtnl_unlock ();
12531252}
12541253
12551254void ipoib_ib_dev_cleanup (struct net_device * dev )
You can’t perform that action at this time.
0 commit comments