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>
Cc: Simon Wunderlich <simon@open-mesh.com>,
Antonio Quartulli <antonio@meshcoding.com>
Subject: Re: [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: fix lockdep splat when doing mcast_free
Date: Mon, 7 Dec 2015 23:12:42 +0100 [thread overview]
Message-ID: <20151207221242.GR27041@otheros> (raw)
In-Reply-To: <8889525.bHy7H9IMLu@sven-edge>
Hi,
Sorry for the late reply, I had also missed the Sven's
lockdep-assert-patch back then.
> On Saturday 28 November 2015 10:49:59 Antonio Quartulli wrote:
> > Linus,
> >
> > can you please comment as of why batadv_mcast_mla_tt_retract() requires
> > to hold the tt.commit_lock ?
I don't think it does. At least if you say that a call to
batadv_tt_local_remove() as is does not need it (and it seems
there are other places calling tt_local_remove() without this
lock, too).
> [...]
On Sat, Nov 28, 2015 at 09:21:02AM +0100, Sven Eckelmann wrote:
> mcast.mla_list is protected by tt.commit_lock (see batadv_mcast_mla_tt_add,
> batadv_mcast_mla_list_free and batadv_mcast_mla_tt_retract).
>
mcast.mla_list changes should be protected by the non-parallel code
flow: During runtime, batadv_mcast_mla_tt_update() is only called from
the self-rearming OGM scheduler thread -
batadv_mcast_mla_tt_update() will never run more than once at the
same time.
The second place for mcast.mla_list changes, batadv_mcast_free(), is
called only on shutdown after the OGM scheduling thread was stopped.
I don't think there should be such races regarding mcast.mla_list
- was something like that observed in the wild which lead to inserting
the lockdep-asserts?
Cheers, Linus
next prev parent reply other threads:[~2015-12-07 22:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 18:57 [B.A.T.M.A.N.] [PATCH 0/3] Couple of patches while developing BATMAN V Simon Wunderlich
2015-11-23 18:57 ` [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: fix lockdep splat when doing mcast_free Simon Wunderlich
2015-11-28 2:49 ` Antonio Quartulli
2015-11-28 8:21 ` Sven Eckelmann
2015-11-28 12:56 ` Antonio Quartulli
2015-12-07 22:12 ` Linus Lüssing [this message]
2015-12-07 22:36 ` Linus Lüssing
2015-12-14 18:56 ` Sven Eckelmann
2015-12-15 13:15 ` Linus Lüssing
2015-12-15 14:15 ` Sven Eckelmann
2015-11-23 18:57 ` [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: add kerneldoc for batadv_iv_ogm_aggr_packet Simon Wunderlich
2015-11-27 1:56 ` Marek Lindner
2015-11-23 18:57 ` [B.A.T.M.A.N.] [PATCH 3/3] batman-adv: add seqno maximum age and protection start flag parameters Simon Wunderlich
2015-11-27 1:59 ` Marek Lindner
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=20151207221242.GR27041@otheros \
--to=linus.luessing@c0d3.blue \
--cc=antonio@meshcoding.com \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=simon@open-mesh.com \
/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.