net: kill an RCU warning in inet_fill_link_af()
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 1 Dec 2010 06:03:06 +0000 (06:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Dec 2010 20:59:06 +0000 (12:59 -0800)
commitf7fce74e387e0563e5a165704664aa5ee8b2f48b
tree7c80f4ec69bb2fef3ad8513d3c9d83c6bd2035e2
parent06a9701f4b3e3381dea96fee1cc8a3bb41b0a1f1
net: kill an RCU warning in inet_fill_link_af()

commits 9f0f7272 (ipv4: AF_INET link address family) and cf7afbfeb8c
(rtnl: make link af-specific updates atomic) used incorrect
__in_dev_get_rcu() in RTNL protected contexts, triggering PROVE_RCU
warnings.

Switch to __in_dev_get_rtnl(), wich is more appropriate, since we hold
RTNL.

Based on a report and initial patch from Amerigo Wang.

Reported-by: Amerigo Wang <amwang@redhat.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Thomas Graf <tgraf@infradead.org>
Reviewed-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c