Thread (18 messages) flat view 18 messages, 3 authors, 2012-03-07

Re: [PATCH 3/6] netfilter: ctnetlink: use GFP_ATOMIC in all allocations

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2012-03-06 15:35:18
Also in: netfilter-devel

On Tue, Mar 06, 2012 at 07:09:17AM -0800, Eric Dumazet wrote:
Le mardi 06 mars 2012 à 15:48 +0100, Pablo Neira Ayuso a écrit :
quoted
On Tue, Mar 06, 2012 at 04:50:21AM -0800, Eric Dumazet wrote:
quoted
quoted
This cant be right.

Really this must be kept as GFP_KERNEL allocations.

Only if .call_rcu member is used in place of .call rcu_read_lock() is
held instead of nfnl_lock().
I thought we couldn't sleep while holding rcu_read_lock.
True, but as far as I can see we dont hold rcu_read_lock() at this
point, only a mutex.

I added the .call_rcu() mechanism in struct nfnl_callback only for very
specific needs, namely performance improvements in commit 84a797dd0
(netfilter: nfnetlink_queue: provide rcu enabled callbacks)
Sorry, I overlooked that changed, I still thought that we were calling
these under rcu_read_lock.

This patch has to be kept out indeed. Thanks for spotting this Eric.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help