RCU Archive on lore.kernel.org
 help / color / Atom feed
From: David Miller <davem@davemloft.net>
To: madhuparnabhowmik04@gmail.com
Cc: gregkh@linuxfoundation.org, paulmck@kernel.org,
	joel@joelfernandes.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, rcu@vger.kernel.org,
Subject: Re: [PATCH] net: wan: lapbether.c: Use built-in RCU list checking
Date: Thu, 16 Jan 2020 05:31:07 -0800 (PST)
Message-ID: <20200116.053107.2118682332070479073.davem@davemloft.net> (raw)
In-Reply-To: <20200115114101.13068-1-madhuparnabhowmik04@gmail.com>

From: madhuparnabhowmik04@gmail.com
Date: Wed, 15 Jan 2020 17:11:01 +0530

> From: Madhuparna Bhowmik <madhuparnabhowmik04@gmail.com>
> The only callers of the function lapbeth_get_x25_dev()
> are lapbeth_rcv() and lapbeth_device_event().
> lapbeth_rcv() uses rcu_read_lock() whereas lapbeth_device_event()
> is called with RTNL held (As mentioned in the comments).
> Therefore, pass lockdep_rtnl_is_held() as cond argument in
> list_for_each_entry_rcu();
> Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik04@gmail.com>


      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-15 11:41 madhuparnabhowmik04
2020-01-16 13:31 ` David Miller [this message]

Reply instructions:

You may reply publically 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:

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

  git send-email \
    --in-reply-to=20200116.053107.2118682332070479073.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=frextrite@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=joel@joelfernandes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=madhuparnabhowmik04@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=paulmck@kernel.org \
    --cc=rcu@vger.kernel.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

RCU Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/rcu/0 rcu/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 rcu rcu/ https://lore.kernel.org/rcu \
	public-inbox-index rcu

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git