Thread (4 messages) 4 messages, 4 authors, 2016-09-15

Re: [PATCH net-next] net/sched: act_tunnel_key: Remove rcu_read_lock protection

flat view

From: Eric Dumazet <hidden>
Date: 2016-09-12 14:17:42

On Mon, 2016-09-12 at 07:09 -0700, John Fastabend wrote:
On 16-09-12 05:19 AM, Hadar Hen Zion wrote:
quoted
Remove rcu_read_lock protection from tunnel_key_dump and use
rtnl_dereference, dump operation is protected by  rtnl lock.

Also, remove rcu_read_lock from tunnel_key_release and use
rcu_dereference_protected.

Both operations are running exclusively and a writer couldn't modify
t->params while those functions are executed.

Fixes: 54d94fd89d90 ('net/sched: Introduce act_tunnel_key')
Signed-off-by: Hadar Hen Zion <redacted>
---
Thanks for cleaning this up.

Acked-by: John Fastabend <redacted>
Exactly, we now have a nice canonical net/sched/act_... component.

Acked-by: Eric Dumazet <redacted>

Thanks guys.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help