From: Marek Lindner <mareklindner@neomailbox.ch>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] [PATCH v2 1/2] batman-adv: Annotate deleting functions with external lock via lockdep
Date: Fri, 10 Jul 2015 16:27:41 +0800 [thread overview]
Message-ID: <10046840.JiJO56dRcH@voltaire> (raw)
In-Reply-To: <1434890715-14370-1-git-send-email-sven@narfation.org>
[-- Attachment #1: Type: text/plain, Size: 852 bytes --]
On Sunday, June 21, 2015 14:45:14 Sven Eckelmann wrote:
> Functions which use (h)list_del* are requiring correct locking when they
> operate on global lists. Most of the time the search in the list and the
> delete are done in the same function. All other cases should have it
> visible that they require a special lock to avoid race conditions.
>
> Lockdep asserts can be used to check these problem during runtime when the
> lockdep functionality is enabled.
>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
> v2:
> * no change
>
> net/batman-adv/main.c | 11 ++++++++---
> net/batman-adv/multicast.c | 13 +++++++++++--
> net/batman-adv/network-coding.c | 4 ++++
> net/batman-adv/translation-table.c | 2 ++
> 4 files changed, 25 insertions(+), 5 deletions(-)
Applied in revision 5b95c42.
Thanks,
Marek
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2015-07-10 8:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-21 12:45 [B.A.T.M.A.N.] [PATCH v2 1/2] batman-adv: Annotate deleting functions with external lock via lockdep Sven Eckelmann
2015-06-21 12:45 ` [B.A.T.M.A.N.] [PATCH v2 2/2] batman-adv: Add lockdep_asserts for documented external locks Sven Eckelmann
2015-07-10 8:29 ` Marek Lindner
2015-06-21 13:23 ` [B.A.T.M.A.N.] [PATCH v2 3/3] batman-adv: Add compat code for lockdep_assert_held Sven Eckelmann
2015-07-10 8:30 ` Marek Lindner
2015-07-10 8:27 ` Marek Lindner [this message]
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=10046840.JiJO56dRcH@voltaire \
--to=mareklindner@neomailbox.ch \
--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