From: Antonio Quartulli <ordex@autistici.org>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org,
davem@davemloft.net, Marek Lindner <lindner_marek@yahoo.de>
Subject: Re: [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: wait for rtnl in batadv_store_mesh_iface instead of failing if it is taken
Date: Tue, 11 Jun 2013 16:17:12 +0200 [thread overview]
Message-ID: <20130611141712.GG1466@ritirata.org> (raw)
In-Reply-To: <1370959770.1954.3.camel@bwh-desktop.uk.level5networks.com>
[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]
On Tue, Jun 11, 2013 at 03:09:30PM +0100, Ben Hutchings wrote:
> On Tue, 2013-06-11 at 08:34 +0200, Antonio Quartulli wrote:
> > From: Matthias Schiffer <mschiffer@universe-factory.net>
> >
> > The rtnl_lock in batadv_store_mesh_iface has been converted to a rtnl_trylock
> > some time ago to avoid a possible deadlock between rtnl and s_active on removal
> > of the sysfs nodes.
> >
> > The behaviour introduced by that was quite confusing as it could lead to the
> > sysfs store to fail, making batman-adv setup scripts unreliable.
>
> I think what you actually wanted was ERESTARTNOINTR. But the real
> problem is that neither of these error codes is valid unless the system
> call is aborted due to a signal.
Well, it should have been handled differently from the beginning..the other
problem was that ERESTARTSYS was propagated to userspace while this is not
supposed to happen.
However, with this patch the initialisation does not fail anymore. So we don't
need to care about the error code anymore :-)
Cheers,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-06-11 14:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-11 6:34 [B.A.T.M.A.N.] pull request for net: batman-adv 2013-06-11 Antonio Quartulli
2013-06-11 6:34 ` [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: wait for rtnl in batadv_store_mesh_iface instead of failing if it is taken Antonio Quartulli
2013-06-11 14:09 ` Ben Hutchings
2013-06-11 14:17 ` Antonio Quartulli [this message]
2013-06-11 6:35 ` [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: forward late OGMs from best next hop Antonio Quartulli
2013-06-11 6:35 ` [B.A.T.M.A.N.] [PATCH 3/3] batman-adv: Don't handle address updates when bla is disabled Antonio Quartulli
2013-06-11 8:07 ` [B.A.T.M.A.N.] pull request for net: batman-adv 2013-06-11 Antonio Quartulli
2013-06-13 8:27 ` David Miller
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=20130611141712.GG1466@ritirata.org \
--to=ordex@autistici.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=lindner_marek@yahoo.de \
--cc=netdev@vger.kernel.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