From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760575AbYFJWay (ORCPT ); Tue, 10 Jun 2008 18:30:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760237AbYFJWaj (ORCPT ); Tue, 10 Jun 2008 18:30:39 -0400 Received: from e6.ny.us.ibm.com ([32.97.182.146]:41676 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760540AbYFJWab convert rfc822-to-8bit (ORCPT ); Tue, 10 Jun 2008 18:30:31 -0400 To: Jeff Garzik cc: Nicolas 2P , David Miller , bonding-devel@lists.sourceforge.net, linux-net@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [patch] bondig - arp_interval with low value => Oops. In-reply-to: <484EFDFC.3040206@garzik.org> References: <482C9E73.2040202@free.fr> <484EFDFC.3040206@garzik.org> Comments: In-reply-to Jeff Garzik message dated "Tue, 10 Jun 2008 18:19:40 -0400." X-Mailer: MH-E 8.0.3; nmh 1.1-RC4; GNU Emacs 22.0.95 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Date: Tue, 10 Jun 2008 15:30:06 -0700 Message-ID: <8135.1213137006@death> From: Jay Vosburgh Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jeff Garzik wrote: >Nicolas 2P wrote: >> When setting arp_interval parameter to a very low value, delta_in_ticks >> for next arp might become 0, causing an infinite loop. >> >> See http://bugzilla.kernel.org/show_bug.cgi?id=10680 >> >> Same problem for miimon parameter already fixed, but fix might be >> enhanced, by using msecs_to_jiffies() function. >> >> Signed-off-by: Nicolas de Pesloüan > >I don't see an ACK from Jay in my mbox? > >Certainly looks nicer than adding "? : 1" to each of the remaining two >cases. This was accepted a couple of weeks ago; I had to fix a bug in the patch, so I'd guess you didn't connect them: commit 5ce0da8f0386b62345312ec8fed31303732f4220 Author: Jay Vosburgh Date: Sat May 17 21:10:07 2008 -0700 bonding: Use msecs_to_jiffies, eliminate panic Convert bonding to use msecs_to_jiffies instead of doing the math. For the ARP monitor, there was an underflow problem that could result in an infinite loop. The miimon already had that worked around, but this is cleaner. Originally by Nicolas de Pesloüan Jay Vosburgh corrected a math error in the original; Nicolas' original commit message is: When setting arp_interval parameter to a very low value, delta_in_ticks for next arp might become 0, causing an infinite loop. See http://bugzilla.kernel.org/show_bug.cgi?id=10680 Same problem for miimon parameter already fixed, but fix might be enhanced, by using msecs_to_jiffies() function. Signed-off-by: Nicolas de Pesloüan Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik -J --- -Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com