[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH3MdRUNezF3k-=n6xXWoMUJCGxFTp=YporYRqJwJkBGPg-RWA@mail.gmail.com>
Date: Mon, 30 Jul 2018 15:22:21 -0700
From: Y Song <ys114321@...il.com>
To: Taehee Yoo <ap420073@...il.com>
Cc: Daniel Borkmann <daniel@...earbox.net>,
Alexei Starovoitov <ast@...nel.org>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf-next] lwt_bpf: remove unnecessary rcu_read_lock in run_lwt_bpf
On Mon, Jul 30, 2018 at 6:22 AM, Taehee Yoo <ap420073@...il.com> wrote:
> run_lwt_bpf is called by bpf_{input/output/xmit}.
> These functions are already protected by rcu_read_lock.
> because lwtunnel_{input/output/xmit} holds rcu_read_lock
> and then calls bpf_{input/output/xmit}.
> So that rcu_read_lock in the run_lwt_bpf is unnecessary.
>
> Signed-off-by: Taehee Yoo <ap420073@...il.com>
Acked-by: Yonghong Song <yhs@...com>
Powered by blists - more mailing lists