[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201209061811.48524-4-ljp@linux.ibm.com>
Date: Wed, 9 Dec 2020 00:18:11 -0600
From: Lijun Pan <ljp@...ux.ibm.com>
To: netdev@...r.kernel.org
Cc: Lijun Pan <ljp@...ux.ibm.com>,
Haiyang Zhang <haiyangz@...rosoft.com>
Subject: [PATCH net-next 3/3] use __netdev_notify_peers in hyperv
Start to use the lockless version of netdev_notify_peers.
Cc: Haiyang Zhang <haiyangz@...rosoft.com>
Signed-off-by: Lijun Pan <ljp@...ux.ibm.com>
---
drivers/net/hyperv/netvsc_drv.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index d17bbc75f5e7..4e3dac7bb944 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -2130,10 +2130,10 @@ static void netvsc_link_change(struct work_struct *w)
break;
}
- rtnl_unlock();
-
if (notify)
- netdev_notify_peers(net);
+ __netdev_notify_peers(net);
+
+ rtnl_unlock();
/* link_watch only sends one notification with current state per
* second, handle next reconfig event in 2 seconds.
--
2.23.0
Powered by blists - more mailing lists