login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
6
Re: [PATCH tip/core/rcu 28/48] net: Make accesses to ->br_port safe for sparse RCU
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Paul E. McKenney
Subject:
Re: [PATCH tip/core/rcu 28/48] net: Make accesses to ->br_port safe for sparse RCU
Date: Thursday, May 6, 2010 - 4:12 pm
On Thu, May 06, 2010 at 04:09:25PM +0200, Arnd Bergmann wrote:
quoted text
> On Thursday 06 May 2010, Paul E. McKenney wrote: > > On Tue, May 04, 2010 at 11:41:49PM +0200, Arnd Bergmann wrote: > > > On Tuesday 04 May 2010 23:26:31 Stephen Hemminger wrote: > > > > > The new versions of the rcu_dereference() APIs requires that any pointers > > > > > passed to one of these APIs be fully defined. The ->br_port field > > > > > in struct net_device points to a struct net_bridge_port, which is an > > > > > incomplete type. This commit therefore changes ->br_port to be a void*, > > > > > and introduces a br_port() helper function to convert the type to struct > > > > > net_bridge_port, and applies this new helper function where required. > > > > > > > > I would rather make the bridge hook generic and not take a type argument. > > > > > > Not sure if you were confused by the comment in the same way that I was. > > > > > > The bridge hook is not impacted by this at all, since we can either pass > > > a void* or a struct net_bridge_port* to it. The br_port() helper > > > is used for all the places where we actually want to dereference > > > dev->br_port and access its contents. > > > > What should I change in the commit message to clear this up? > > > > Of course, if the code needs to change, please let me know what should > > change there as well. > > I think it's both ok, I was mostly confused by the discussion we had earlier. > Maybe add a sentence like: > > The br_handle_frame_hook now needs a forward declaration of struct net_bridge_port.
Done!
quoted text
> Or you just change br_handle_frame_hook to take a void* to avoid the forward > declaration. Not sure what Stephen was referring to really.
This sounds like a way to make things quite a bit more intrusive, so holding off on this. Thanx, Paul --
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 tip/core/rcu 01/48] rcu: optionally leave lockdep e ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 02/48] rcu: substitute set_need_resche ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 03/48] rcu: make dead code really dead
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 04/48] rcu: move some code from macro ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 05/48] rcu: ignore offline CPUs in las ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 06/48] rcu: Fix bogus CONFIG_PROVE_LOC ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 07/48] rcu: fix now-bogus rcu_schedule ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 08/48] rcu: shrink rcutiny by making s ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 09/48] rcu: rename rcutiny rcu_ctrlblk ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 10/48] rcu: refactor RCU's context-swi ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 11/48] rcu: slim down rcutiny by remov ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 12/48] rcu: enable CPU_STALL_VERBOSE b ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 13/48] rcu: disable CPU stall warnings ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 14/48] rcu: print boot-time console me ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 15/48] rcu: improve RCU CPU stall-warn ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 16/48] rcu: permit discontiguous cpu_p ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 17/48] rcu: v2: reduce the number of s ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 18/48] rcu: improve the RCU CPU-stall ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 19/48] Debugobjects transition check
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 20/48] rcu head introduce rcu head ini ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 21/48] remove all rcu head initializat ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 22/48] rcu head remove init
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 23/48] tree/tiny rcu: Add debug RCU he ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 24/48] rcu: make SRCU usable in modules
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 0/48] v4 patches queued for 2.6.35
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 25/48] rcu: fix debugobjects rcu head ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 26/48] rcu: RCU_FAST_NO_HZ must check ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 27/48] vfs: add fs.h to define struct file
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 28/48] net: Make accesses to ->br_port ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 29/48] rcu: add an rcu_dereference_ind ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 30/48] mce: convert to rcu_dereference ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 31/48] rcu: define __rcu address space ...
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 32/48] rculist: avoid __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 33/48] cgroups: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 34/48] credentials: rcu annotation
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 35/48] keys: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 36/48] nfs: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 37/48] net: __rcu annotations for drivers
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 38/48] perf_event: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 39/48] notifiers: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 40/48] radix-tree: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 41/48] idr: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 42/48] input: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 43/48] vhost: add __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 44/48] net/netfilter: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 45/48] kvm: add __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 46/48] kernel: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 47/48] net: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
[PATCH tip/core/rcu 48/48] kvm: more __rcu annotations
, Paul E. McKenney
, (Tue May 4, 1:19 pm)
Re: [PATCH tip/core/rcu 21/48] remove all rcu head initial ...
, Matt Mackall
, (Tue May 4, 1:27 pm)
Re: [PATCH tip/core/rcu 21/48] remove all rcu head initial ...
, Paul E. McKenney
, (Tue May 4, 1:36 pm)
Re: [PATCH tip/core/rcu 33/48] cgroups: __rcu annotations
, Paul Menage
, (Tue May 4, 1:48 pm)
Re: [PATCH tip/core/rcu 31/48] rcu: define __rcu address s ...
, Arnd Bergmann
, (Tue May 4, 1:58 pm)
Re: [PATCH tip/core/rcu 28/48] net: Make accesses to ->br_ ...
, Stephen Hemminger
, (Tue May 4, 2:26 pm)
Re: [PATCH tip/core/rcu 43/48] vhost: add __rcu annotations
, Michael S. Tsirkin
, (Tue May 4, 2:39 pm)
Re: [PATCH tip/core/rcu 28/48] net: Make accesses to ->br_ ...
, Arnd Bergmann
, (Tue May 4, 2:41 pm)
Re: [PATCH tip/core/rcu 31/48] rcu: define __rcu address s ...
, Paul E. McKenney
, (Tue May 4, 4:07 pm)
Re: [PATCH tip/core/rcu 21/48] remove all rcu head initial ...
, James Morris
, (Tue May 4, 4:44 pm)
Re: [PATCH tip/core/rcu 43/48] vhost: add __rcu annotations
, Paul E. McKenney
, (Tue May 4, 4:57 pm)
Re: [PATCH tip/core/rcu 43/48] vhost: add __rcu annotations
, Michael S. Tsirkin
, (Tue May 4, 4:59 pm)
Re: [PATCH tip/core/rcu 21/48] remove all rcu head initial ...
, Paul E. McKenney
, (Tue May 4, 5:03 pm)
Re: [PATCH tip/core/rcu 33/48] cgroups: __rcu annotations
, Paul E. McKenney
, (Tue May 4, 5:04 pm)
Re: [PATCH tip/core/rcu 43/48] vhost: add __rcu annotations
, Paul E. McKenney
, (Tue May 4, 5:39 pm)
Re: [PATCH tip/core/rcu 36/48] nfs: __rcu annotations
, David Howells
, (Wed May 5, 3:14 am)
Re: [PATCH tip/core/rcu 36/48] nfs: __rcu annotations
, Trond Myklebust
, (Wed May 5, 5:44 am)
Re: [PATCH tip/core/rcu 36/48] nfs: __rcu annotations
, Paul E. McKenney
, (Wed May 5, 2:01 pm)
Re: [PATCH tip/core/rcu 28/48] net: Make accesses to ->br_ ...
, Paul E. McKenney
, (Wed May 5, 3:03 pm)
Re: [PATCH tip/core/rcu 01/48] rcu: optionally leave lockd ...
, Mathieu Desnoyers
, (Wed May 5, 3:46 pm)
Re: [PATCH tip/core/rcu 01/48] rcu: optionally leave lockd ...
, Paul E. McKenney
, (Wed May 5, 4:05 pm)
Re: [PATCH tip/core/rcu 01/48] rcu: optionally leave lockd ...
, Mathieu Desnoyers
, (Wed May 5, 4:24 pm)
Re: [PATCH tip/core/rcu 01/48] rcu: optionally leave lockd ...
, Paul E. McKenney
, (Wed May 5, 4:36 pm)
Re: [PATCH tip/core/rcu 01/48] rcu: optionally leave lockd ...
, Mathieu Desnoyers
, (Wed May 5, 7:05 pm)
Re: [PATCH tip/core/rcu 28/48] net: Make accesses to ->br_ ...
, Arnd Bergmann
, (Thu May 6, 7:09 am)
Re: [PATCH tip/core/rcu 01/48] rcu: optionally leave lockd ...
, Paul E. McKenney
, (Thu May 6, 4:09 pm)
Re: [PATCH tip/core/rcu 28/48] net: Make accesses to ->br_ ...
, Paul E. McKenney
, (Thu May 6, 4:12 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michael Trimarchi
Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Miklos Szeredi
[patch 14/15] vfs: more path_permission() conversions
Serge E. Hallyn
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
Bernd Schmidt
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Takashi Iwai
[PATCH 2/2] input: Add LED support to Synaptics device
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Shawn O. Pearce
Re: Switching from CVS to GIT
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Santi Béjar
Re: How to use git-fmt-merge-msg?
linux-netdev
:
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Mark Anthony
invitation / inquiry
Ingo Molnar
Re: [PATCH 08/16] dma-debug: add core checking functions
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Sascha Hauer
[PATCH 03/12] fec: do not typedef struct types
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Linux Kernel Mailing List
ARM: S5PC100: IRQ and timer
Linux Kernel Mailing List
davinci: edma: clear interrupt status for interrupt enabled channels only
Linux Kernel Mailing List
x86, mm, kprobes: fault.c, simplify notify_page_fault()
openbsd-misc
:
Daniel A. Ramaley
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Matthias Kilian
Re: can't get vesa @ 1280x800 or nv
Tobias Ulmer
Re: Problem after upgrade 4.5 to 4.6: ERR M
Philip Guenther
Re: SIGCHLD and libpthread.so
J.C. Roberts
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Colocation donated by:
Syndicate