From: Antonio Quartulli <antonio@meshcoding.com>
To: "Linus Lüssing" <linus.luessing@c0d3.blue>
Cc: Simon Wunderlich <simon@open-mesh.com>,
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 1/3] batman-adv: fix lockdep splat when doing mcast_free
Date: Sat, 28 Nov 2015 10:49:59 +0800 [thread overview]
Message-ID: <56591657.6070401@meshcoding.com> (raw)
In-Reply-To: <1448305042-5806-2-git-send-email-sw@simonwunderlich.de>
[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]
Simon Wunderlich:
> From: Simon Wunderlich <simon@open-mesh.com>
>
> Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
> ---
> net/batman-adv/multicast.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c
> index 8abf488..d984eee 100644
> --- a/net/batman-adv/multicast.c
> +++ b/net/batman-adv/multicast.c
> @@ -801,7 +801,9 @@ void batadv_mcast_free(struct batadv_priv *bat_priv)
> batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_MCAST, 1);
> batadv_tvlv_handler_unregister(bat_priv, BATADV_TVLV_MCAST, 1);
>
> + spin_lock_bh(&bat_priv->tt.commit_lock);
> batadv_mcast_mla_tt_retract(bat_priv, NULL);
> + spin_unlock_bh(&bat_priv->tt.commit_lock);
Linus,
can you please comment as of why batadv_mcast_mla_tt_retract() requires
to hold the tt.commit_lock ?
I see it calls batadv_tt_local_remove() but this does not really
requires the lock. Maybe you wanted to perform *all* the removes before
TT could do a commit ? Or is there any other reason?
Cheers,
--
Antonio Quartulli
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2015-11-28 2:49 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 [this message]
2015-11-28 8:21 ` Sven Eckelmann
2015-11-28 12:56 ` Antonio Quartulli
2015-12-07 22:12 ` Linus Lüssing
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=56591657.6070401@meshcoding.com \
--to=antonio@meshcoding.com \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=linus.luessing@c0d3.blue \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox