From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [RFC PATCH] batman-adv: convert ifmcaddr6 to RCU
Date: Sun, 18 Apr 2021 22:17:28 +0200 [thread overview]
Message-ID: <20210418201728.GB8165@otheros> (raw)
In-Reply-To: <20210418201607.GA8165@otheros>
On Sun, Apr 18, 2021 at 10:16:07PM +0200, Linus Lüssing wrote:
> On Sun, Apr 18, 2021 at 10:14:22PM +0200, Linus Lüssing wrote:
> > [...]
> > diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c
> > index 28166402..1d63c8cb 100644
> > --- a/net/batman-adv/multicast.c
> > +++ b/net/batman-adv/multicast.c
> > @@ -454,8 +454,9 @@ batadv_mcast_mla_softif_get_ipv6(struct net_device *dev,
> > return 0;
> > }
> >
> > - read_lock_bh(&in6_dev->lock);
> > - for (pmc6 = in6_dev->mc_list; pmc6; pmc6 = pmc6->next) {
> > + for (pmc6 = rcu_dereference(in6_dev->mc_list);
> > + pmc6;
> > + pmc6 = rcu_dereference(pmc6->next)) {
> > if (IPV6_ADDR_MC_SCOPE(&pmc6->mca_addr) <
> > IPV6_ADDR_SCOPE_LINKLOCAL)
> > continue;
> > @@ -484,7 +485,6 @@ batadv_mcast_mla_softif_get_ipv6(struct net_device *dev,
> > hlist_add_head(&new->list, mcast_list);
> > ret++;
> > }
> > - read_unlock_bh(&in6_dev->lock);
> > rcu_read_unlock();
> >
> > return ret;
> > --
>
> Ups, accidentally added this. Will remove that in the next
> version.
Ah, no, sorry, should be in there, changed my mind :D.
Sorry for the noise.
next prev parent reply other threads:[~2021-04-18 20:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-18 20:14 [RFC PATCH] batman-adv: convert ifmcaddr6 to RCU Linus Lüssing
2021-04-18 20:16 ` Linus Lüssing
2021-04-18 20:17 ` Linus Lüssing [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-17 7:32 Sven Eckelmann
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=20210418201728.GB8165@otheros \
--to=linus.luessing@c0d3.blue \
--cc=b.a.t.m.a.n@lists.open-mesh.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox