From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH v2 2/2] batman-adv: Simple (re)broadcast avoidance
Date: Sat, 6 Aug 2016 21:58:59 +0200 [thread overview]
Message-ID: <20160806195859.GF9221@otheros> (raw)
In-Reply-To: <3793403.6mU5AUzq3p@sven-edge>
On Sat, Aug 06, 2016 at 10:13:38AM +0200, Sven Eckelmann wrote:
> And to be fair: There is one case were a spinlock is missing in
> batadv_find_router
>
> last_candidate = orig_node->last_bonding_candidate;
> if (last_candidate)
> last_cand_router = rcu_dereference(last_candidate->router);
>
> I had this on my list but mostly forgot about it while chasing the reference
> counting bugs. Maybe you found more problems but I am not sure which ones :)
Right, that was the part that startled me in the first place :-).
(bc. of the rcu_read_lock() one line earlier, I falsely assumed
that the author wanted to have it rcu-locked for the reader-side -
but you are right, spinlocking for both reader and writer side is another
option :) )
next prev parent reply other threads:[~2016-08-06 19:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-01 20:38 [B.A.T.M.A.N.] [PATCH v2 1/2] batman-adv: Remove unused skb_reset_mac_header() Linus Lüssing
2016-08-01 20:38 ` [B.A.T.M.A.N.] [PATCH v2 2/2] batman-adv: Simple (re)broadcast avoidance Linus Lüssing
2016-08-03 19:59 ` Sven Eckelmann
2016-08-03 21:25 ` Linus Lüssing
2016-08-03 23:43 ` Linus Lüssing
2016-08-04 5:56 ` Sven Eckelmann
2016-08-04 6:09 ` Sven Eckelmann
2016-08-06 1:11 ` Linus Lüssing
2016-08-06 8:13 ` Sven Eckelmann
2016-08-06 19:58 ` Linus Lüssing [this message]
2016-08-04 7:29 ` Sven Eckelmann
2016-08-06 1:04 ` Linus Lüssing
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=20160806195859.GF9221@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 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.