All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Taehee Yoo <ap420073@gmail.com>
Cc: ja@ssi.bg, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH V2] netfilter: Remove duplicated rcu_read_lock.
Date: Mon, 19 Jun 2017 20:20:52 +0200	[thread overview]
Message-ID: <20170619182052.GA19682@salvia> (raw)
In-Reply-To: <20170605152125.24978-1-ap420073@gmail.com>

On Tue, Jun 06, 2017 at 12:21:25AM +0900, Taehee Yoo wrote:
> Some functions are called by nf_hook() and these
> functions hold rcu_read_lock() But nf_hook() already holds
> rcu_read_lock() therefore callee's rcu_read_lock() are useless.
> Below messages are calltrace.

Another comestic change, regarding commit log.

Instead of this large commit log, with all these call traces, I would
like to see a more comprehensive explanation per file, eg.

[...]
> 16. destroy_conntrack
> -nf_ct_destroy
> --nf_conntrack_destroy

destroy_destroy() is called from rcu protected callback function, so
rcu read side lock is already guaranteed.

[...]
> 17. __ctnetlink_glue_build

Another example: Called from packet path, netfilter hooks run under
rcu read lock side, so all packet path code is under rcu read side
lock.

If possible... No problem if you're non-native English speaker, most
of us are not, so some hints to understand why rcu_read_lock() is not
required in natural languages seems like a good fit for the git
repository IMO.

Don't get me wrong, the calltraces are fine for review, but I would
like we don't land such a loooong commit message in the netfilter
tree.

Thanks!

      parent reply	other threads:[~2017-06-19 18:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-05 15:21 [PATCH V2] netfilter: Remove duplicated rcu_read_lock Taehee Yoo
2017-06-05 18:59 ` Julian Anastasov
2017-06-19 18:04 ` Pablo Neira Ayuso
2017-06-20 15:32   ` Taehee Yoo
2017-06-19 18:20 ` Pablo Neira Ayuso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170619182052.GA19682@salvia \
    --to=pablo@netfilter.org \
    --cc=ap420073@gmail.com \
    --cc=ja@ssi.bg \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.