]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: fix RCU warning in get_stats
authorstephen hemminger <stephen@networkplumber.org>
Fri, 14 Apr 2017 21:42:57 +0000 (14:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 19:12:33 +0000 (15:12 -0400)
commit645fca073aface82e9f4821ff4f384e777bb598a
tree81ee369b46ff8e4eda9bd697b7e01d1c8fd27fb8
parent60dc0e9ef871549bc1d3a72dbef0ae1001a45dbd
netvsc: fix RCU warning in get_stats

The statistics functionis called with RTNL held during probe
but with RCU held during access from /proc and elsewhere.
This is safe so update the lockdep annotation.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c