From: Or Gerlitz <gerlitz.or@gmail.com>
To: Jiri Pirko <jiri@resnulli.us>
Cc: Linux Netdev List <netdev@vger.kernel.org>,
David Miller <davem@davemloft.net>,
idosch@mellanox.com, Elad Raz <eladr@mellanox.com>,
Scott Feldman <sfeldma@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Guenter Roeck <linux@roeck-us.net>,
Vivien Didelot <vivien.didelot@savoirfairelinux.com>,
Andrew Lunn <andrew@lunn.ch>,
john fastabend <john.fastabend@gmail.com>,
David Laight <David.Laight@aculab.com>
Subject: Re: [patch net-next RFC 3/3] switchdev: introduce deferred variants of obj_add/del helpers
Date: Thu, 8 Oct 2015 17:41:43 +0300 [thread overview]
Message-ID: <CAJ3xEMhiqfbQRYbAaY5Lxs3oo-XqLQmokNTkXP4qYaocMNZZkw@mail.gmail.com> (raw)
In-Reply-To: <20151008132541.GK2186@nanopsycho.orion>
On Thu, Oct 8, 2015 at 4:25 PM, Jiri Pirko <jiri@resnulli.us> wrote:
> Thu, Oct 08, 2015 at 03:21:44PM CEST, gerlitz.or@gmail.com wrote:
>>On Thu, Oct 8, 2015 at 4:09 PM, Jiri Pirko <jiri@resnulli.us> wrote:
>>> Thu, Oct 08, 2015 at 10:28:58AM CEST, jiri@resnulli.us wrote:
>>>>Thu, Oct 08, 2015 at 08:45:58AM CEST, gerlitz.or@gmail.com wrote:
>>>>>On Wed, Oct 7, 2015 at 9:30 PM, Jiri Pirko <jiri@resnulli.us> wrote:
>>
>>>>>This introduced a regression to the 2-phase commit scheme, since the
>>>>>prepare commit can fail
>>>>>and that would go un-noticed toward the upper layer, agree?
>>
>>>>Well, no. This still does the transaction for all lower devices in one
>>>>go. No change in that.
>>
>>> Now I get it, yes you are right. But currently there is no code in
>>> kernel which would control retval of deferred attr_set or obj_add/del
>>
>>I am not sure to understand your reply. You are saying that when the deferred
>>procedures complete (e.g fail in the prepare phase) they can't actually let
>>the upper layer to realize that this change isn't possible? this is
>>exactly the bug.
>
> Correct. But check the code. Callers of current deferred variants do
> not care about the retval. Therefore this is not a regression.
No sure to follow on (current) callers of current deferred variants,
are there already
deferred variants for switchdev ops? aren't they introduced in this series?
> It makes sense in my opinion. If you are a called and you explicitly say to
> defer the operation, you cannot expect retval.
yes, this might make sure for the caller, if they want to know the
retval, shouldn't use
the deferred variant.
Or.
next prev parent reply other threads:[~2015-10-08 14:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-07 18:30 [patch net-next RFC 0/3] switchdev: change locking Jiri Pirko
2015-10-07 18:30 ` [patch net-next RFC 1/3] switchdev: assert rtnl in switchdev_port_obj_del Jiri Pirko
2015-10-07 18:30 ` [patch net-next RFC 2/3] switchdev: allow caller to explicitly use deferred attr_set version Jiri Pirko
2015-10-07 18:54 ` kbuild test robot
2015-10-08 4:27 ` Scott Feldman
2015-10-08 5:39 ` Jiri Pirko
2015-10-08 6:03 ` Scott Feldman
2015-10-08 8:26 ` Jiri Pirko
2015-10-09 4:39 ` Scott Feldman
2015-10-09 6:46 ` Jiri Pirko
2015-10-10 2:43 ` Scott Feldman
2015-10-10 7:30 ` Jiri Pirko
2015-10-07 18:30 ` [patch net-next RFC 3/3] switchdev: introduce deferred variants of obj_add/del helpers Jiri Pirko
2015-10-08 6:45 ` Or Gerlitz
2015-10-08 8:28 ` Jiri Pirko
2015-10-08 13:09 ` Jiri Pirko
2015-10-08 13:21 ` Or Gerlitz
2015-10-08 13:25 ` Jiri Pirko
2015-10-08 14:41 ` Or Gerlitz [this message]
2015-10-08 14:44 ` Jiri Pirko
2015-10-10 2:30 ` Scott Feldman
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=CAJ3xEMhiqfbQRYbAaY5Lxs3oo-XqLQmokNTkXP4qYaocMNZZkw@mail.gmail.com \
--to=gerlitz.or@gmail.com \
--cc=David.Laight@aculab.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=eladr@mellanox.com \
--cc=f.fainelli@gmail.com \
--cc=idosch@mellanox.com \
--cc=jiri@resnulli.us \
--cc=john.fastabend@gmail.com \
--cc=linux@roeck-us.net \
--cc=netdev@vger.kernel.org \
--cc=sfeldma@gmail.com \
--cc=vivien.didelot@savoirfairelinux.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;
as well as URLs for NNTP newsgroup(s).