]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit776e726bfb3493f71bb11759f7a60f1b0f6dd2d2
tree81ee369b46ff8e4eda9bd697b7e01d1c8fd27fb8
parent1dbba4cb8df73844ea0d7c1fd11e1ea35f1670b7
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