From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: Re: [PATCH net-next] net/sched: act_tunnel_key: Remove rcu_read_lock protection Date: Mon, 12 Sep 2016 07:09:20 -0700 Message-ID: <57D6B710.1080001@gmail.com> References: <1473682762-8150-1-git-send-email-hadarh@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Jiri Pirko , Jiri Benc , Jamal Hadi Salim , Shmulik Ladkani , Tom Herbert , Eric Dumazet , Cong Wang , Amir Vadai , Or Gerlitz To: Hadar Hen Zion , "David S. Miller" Return-path: Received: from mail-pa0-f65.google.com ([209.85.220.65]:36642 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933195AbcILOJj (ORCPT ); Mon, 12 Sep 2016 10:09:39 -0400 Received: by mail-pa0-f65.google.com with SMTP id p2so1616241pap.3 for ; Mon, 12 Sep 2016 07:09:38 -0700 (PDT) In-Reply-To: <1473682762-8150-1-git-send-email-hadarh@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: On 16-09-12 05:19 AM, Hadar Hen Zion wrote: > 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 > --- Thanks for cleaning this up. Acked-by: John Fastabend