[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20090919222103.017b5d5f@nehalam>
Date: Sat, 19 Sep 2009 22:21:03 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: David Miller <davem@...emloft.net>,
Robert Olsson <robert@...julf.net>
Cc: netdev@...r.kernel.org
Subject: [PATCH 2/2] pktgen: nmi watchdog keep alive
If pktgen gets really busy it takes up all the CPU,
and can starve the NMI thread and cause system reset.
Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
--- a/net/core/pktgen.c 2009-09-19 11:28:53.762463050 -0700
+++ b/net/core/pktgen.c 2009-09-19 11:30:36.534459968 -0700
@@ -136,6 +136,7 @@
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/list.h>
+#include <linux/nmi.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
@@ -3369,6 +3370,7 @@ static void idle(struct pktgen_dev *pkt_
{
ktime_t idle_start = ktime_now();
+ touch_nmi_watchdog();
if (need_resched())
schedule();
else
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists