Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f2bb1de authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

hv_netvsc: avoid unnecessary wakeups on subchannel creation



Only need to wakeup the initiator after all sub-channels
are opened.

Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8195b139
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1048,7 +1048,7 @@ static void netvsc_sc_open(struct vmbus_channel *new_sc)
	else
		netdev_notice(ndev, "sub channel open failed: %d\n", ret);

	atomic_inc(&nvscdev->open_chn);
	if (atomic_inc_return(&nvscdev->open_chn) == nvscdev->num_chn)
		wake_up(&nvscdev->subchan_open);
}