]> 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)
commit1b4f19edbaad8cce48d324fd67f5e503018269fb
tree81ee369b46ff8e4eda9bd697b7e01d1c8fd27fb8
parent1c8c803841a1891bea38c72aadda3ae6e1091d44
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