Commit a6473fe9 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

dev: annotate accesses to dev->link



Following patch will read dev->link locklessly,
annotate the write from do_setlink().

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f694eee9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2956,7 +2956,7 @@ static int do_setlink(const struct sk_buff *skb,
		write_lock(&dev_base_lock);
		if (dev->link_mode ^ value)
			status |= DO_SETLINK_NOTIFY;
		dev->link_mode = value;
		WRITE_ONCE(dev->link_mode, value);
		write_unlock(&dev_base_lock);
	}