netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bug in bonding driver
@ 2010-03-24 18:23 Chris Friesen
  2010-03-24 19:13 ` Jay Vosburgh
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Friesen @ 2010-03-24 18:23 UTC (permalink / raw)
  To: netdev, fubar, bonding-devel


Hi,

One of our guys pointed out what appears to be a bug in
bond_ab_arp_inspect().  There's a chunk of code that looks like this:

	/*
	 * Give slaves 2*delta after being enslaved or made
	 * active.  This avoids bouncing, as the last receive
	 * times need a full ARP monitor cycle to be updated.
	 */
	if (!time_after_eq(jiffies, slave->jiffies +
			   2 * delta_in_ticks))
		continue;

The catch here is that slave->jiffies may not ever get updated after
being set initially, and on long-running systems jiffies will overflow.
 That could cause this check to be true for a substantial amount of time
rather than for just a short period.

One way to fix it would be a boolean which tracks whether or not we've
gone past the time, and if we have then we don't bother actually
checking the time anymore.

Chris

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-24 19:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 18:23 bug in bonding driver Chris Friesen
2010-03-24 19:13 ` Jay Vosburgh
2010-03-24 19:47   ` Chris Friesen

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).