login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
2
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Cong Wang
Subject:
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
Date: Wednesday, December 1, 2010 - 8:14 pm
On 12/02/10 00:03, Eric Dumazet wrote:
quoted text
> Le mercredi 01 décembre 2010 à 19:14 +0800, Amerigo Wang a écrit : >> From: WANG Cong<amwang@redhat.com> >> >> The latest net-next-2.6 triggers an RCU warning during boot, >> lockdep complains that in inet_fill_link_af() we call rcu_dereference_check() >> without rcu_read_lock() protection. >> >> This patch fixes it by replacing __in_dev_get_rcu() with in_dev_get(). > > Here is a better version, thanks a lot for your report and initial > patch. > > > [PATCH net-next-2.6] 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. >
Alright, thanks for fixing it. Reviewed-by: WANG Cong <amwang@redhat.com> --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[Patch] net: kill an RCU warning in inet_fill_link_af()
, Amerigo Wang
, (Wed Dec 1, 4:14 am)
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
, Eric Dumazet
, (Wed Dec 1, 4:21 am)
[PATCH net-next-2.6] : __in_dev_get_rtnl() can use rtnl_de ...
, Eric Dumazet
, (Wed Dec 1, 4:37 am)
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
, Eric Dumazet
, (Wed Dec 1, 9:03 am)
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
, Thomas Graf
, (Wed Dec 1, 10:18 am)
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
, Eric Dumazet
, (Wed Dec 1, 10:31 am)
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
, Thomas Graf
, (Wed Dec 1, 3:22 pm)
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
, Cong Wang
, (Wed Dec 1, 8:14 pm)
Re: [PATCH net-next-2.6] : __in_dev_get_rtnl() can use rtn ...
, David Miller
, (Mon Dec 6, 2:00 pm)
Re: [Patch] net: kill an RCU warning in inet_fill_link_af()
, David Miller
, (Mon Dec 6, 2:01 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Dave Jones
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
Greg Kroah-Hartman
[PATCH 23/36] PM: Convert wakeup flag accessors to inline functions
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
James Henstridge
Re: VCS comparison table
linux-netdev
:
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Guo-Fu Tseng
Re: jme: UDP checksum error, and lots of them
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
git-commits-head
:
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
[ARM] 5185/1: Fix spi num_chipselect for lubbock
Linux Kernel Mailing List
swsusp: provide users with a hint about the no_console_suspend option
Colocation donated by:
Syndicate