From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757969Ab0BDWSf (ORCPT ); Thu, 4 Feb 2010 17:18:35 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:46177 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757441Ab0BDWSe (ORCPT ); Thu, 4 Feb 2010 17:18:34 -0500 From: "Rafael J. Wysocki" To: Andrew Morton Subject: Re: [PATCH] Net / pktgen: Fix freezing problem Date: Thu, 4 Feb 2010 23:19:22 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.33-rc6-rjw; KDE/4.3.5; x86_64; ; ) Cc: LKML , NetDev , pm list , David Miller , Ciprian Dorin Craciun , Greg KH References: <201002042250.58944.rjw@sisk.pl> <20100204141239.aa94e75c.akpm@linux-foundation.org> In-Reply-To: <20100204141239.aa94e75c.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201002042319.22226.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 04 February 2010, Andrew Morton wrote: > On Thu, 4 Feb 2010 22:50:58 +0100 "Rafael J. Wysocki" wrote: > > > From: Rafael J. Wysocki > > Subject: Net / pktgen: Fix freezing problem > > > > Add missing try_to_freeze() to one of the pktgen_thread_worker() code > > paths so that it doesn't block suspend/hibernation. > > > > Fixes http://bugzilla.kernel.org/show_bug.cgi?id=15006 > > > > Signed-off-by: Rafael J. Wysocki > > Reported-and-tested-by: Ciprian Dorin Craciun > > --- > > net/core/pktgen.c | 1 + > > 1 file changed, 1 insertion(+) > > > > Index: linux-2.6/net/core/pktgen.c > > =================================================================== > > --- linux-2.6.orig/net/core/pktgen.c > > +++ linux-2.6/net/core/pktgen.c > > @@ -3524,6 +3524,7 @@ static int pktgen_thread_worker(void *ar > > wait_event_interruptible_timeout(t->queue, > > t->control != 0, > > HZ/10); > > + try_to_freeze(); > > continue; > > } > > > > Also needed in -stable, IMO. Indeed.