From: Or Gerlitz <ogerlitz@voltaire.com>
To: Jay Vosburgh <fubar@us.ibm.com>
Cc: Jeff Garzik <jgarzik@pobox.com>, netdev@vger.kernel.org
Subject: Re: [PATCH RFC] net/bonding: announce fail-over for the active-backup mode
Date: Mon, 02 Jun 2008 13:39:52 +0300 [thread overview]
Message-ID: <4843CDF8.5010200@voltaire.com> (raw)
In-Reply-To: <28012.1212131745@death>
Jay Vosburgh wrote:
> I'm suggesting you do exactly that: release the locks, do your
> stuff, then reacquire the locks.
OK
> I took a look, and I think this is how it stands: I recently
> refactored the active-backup ARP monitor, and I believe that all of its
> calls are now correct; this would have been the difficult one to fix, so
> you timed this just right. The load-balance ARP monitor is still wrong,
> but you don't care about that one since it isn't used for active-backup
> mode.
sounds like I am lucky.
> I think the only cases that will require fixing for you are the
> bond_release and bond_release_all.
>
> For bond_release, there are two calls to change_active: one sets
> it to NULL, and the second sets to to a slave. The first of those calls
> has nominally incorrect locking; the second has proper locking.
> Changing the first call to mimic the methodology of the second call
> should be pretty straightforward. Alternately, if your notifier doesn't
> want to log "change to nothing" events (i.e., put it inside the "if
> (new_active)" block), then you could probably get away with not fixing
> the first call.
>
> For bond_release_all, there's just one call, and it sets the
> current slave to NULL (and then goes off and frees all of the slaves).
> The same caveats from the bond_release case apply here.
Thanks for this deep dive and guidance. I don't think there's a need to
deliver "change to nothing" event and as such I took the approach of
setting this event to happen only (under the acrtive-backup mode AND)
when new_active is not NULL, will send now the patches which I tested today.
Or.
prev parent reply other threads:[~2008-06-02 10:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 12:50 [PATCH RFC] net/bonding: announce fail-over for the active-backup mode Or Gerlitz
2008-05-27 7:33 ` Or Gerlitz
2008-05-27 12:34 ` Or Gerlitz
2008-05-28 22:19 ` Jay Vosburgh
2008-05-29 10:24 ` Or Gerlitz
2008-05-30 7:15 ` Jay Vosburgh
2008-06-02 10:39 ` Or Gerlitz [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=4843CDF8.5010200@voltaire.com \
--to=ogerlitz@voltaire.com \
--cc=fubar@us.ibm.com \
--cc=jgarzik@pobox.com \
--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;
as well as URLs for NNTP newsgroup(s).