From: Marek Lindner <mareklindner@neomailbox.ch>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Antonio Quartulli <antonio@open-mesh.com>,
Antonio Quartulli <antonio@meshcoding.com>
Subject: Re: [B.A.T.M.A.N.] [PATCHv4] batman-adv: avoid potential race condition when adding a new neighbour
Date: Sat, 08 Feb 2014 21:24:04 +0800 [thread overview]
Message-ID: <9483212.4sKq0BcBlF@diderot> (raw)
In-Reply-To: <1390991112-2494-1-git-send-email-antonio@meshcoding.com>
[-- Attachment #1: Type: text/plain, Size: 909 bytes --]
On Wednesday 29 January 2014 11:25:12 Antonio Quartulli wrote:
> From: Antonio Quartulli <antonio@open-mesh.com>
>
> When adding a new neighbour it is important to atomically
> perform the following:
> - check if the neighbour already exists
> - append the neighbour to the proper list
>
> If the two operations are not performed in an atomic context
> it is possible that two concurrent insertions add the same
> neighbour twice.
>
> Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
> ---
>
> Changes from v3:
> - remove useless initialization
>
> Changes from v2:
> - fix typ0
>
> Changes from v1:
> - release hard_iface if we already have a matching neighbour
>
>
> bat_iv_ogm.c | 22 ++++++++++++++++------
> originator.c | 36 ++++++++++++++++++++++++++++++++++++
> originator.h | 4 ++++
> 3 files changed, 56 insertions(+), 6 deletions(-)
Applied in revision e08e28f.
Thanks,
Marek
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
prev parent reply other threads:[~2014-02-08 13:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 10:25 [B.A.T.M.A.N.] [PATCHv4] batman-adv: avoid potential race condition when adding a new neighbour Antonio Quartulli
2014-02-08 13:24 ` 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=9483212.4sKq0BcBlF@diderot \
--to=mareklindner@neomailbox.ch \
--cc=antonio@meshcoding.com \
--cc=antonio@open-mesh.com \
--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