Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751350AbXE2WIA (ORCPT ); Tue, 29 May 2007 18:08:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750867AbXE2WHv (ORCPT ); Tue, 29 May 2007 18:07:51 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:39563 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbXE2WHu (ORCPT ); Tue, 29 May 2007 18:07:50 -0400 From: "Rafael J. Wysocki" To: Pavel Machek Subject: Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default Date: Tue, 29 May 2007 23:55:14 +0200 User-Agent: KMail/1.9.5 Cc: LKML , Andrew Morton , Gautham R Shenoy , Linus Torvalds , Nigel Cunningham , Oleg Nesterov References: <200705270012.59177.rjw@sisk.pl> <200705291415.31970.rjw@sisk.pl> <20070529124816.GI23046@elf.ucw.cz> In-Reply-To: <20070529124816.GI23046@elf.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705292355.15563.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1443 Lines: 35 On Tuesday, 29 May 2007 14:48, Pavel Machek wrote: > Hi! > > > > Well.. it can write anywhere it wants (filesystem or not) as long as > > > the system is not going to be confused after resume by its caches not > > > matching on-disk state. I'd prefer it not to write anywhere at all. > > > > OK > > > > Please have a look at the current version of the patch (appended). > > > > I have followed the Nigel's suggestion not to change the current behavior > > in this patch (I'll add a couple of patches removing the freezability from > > some kernel threads), with one exception: I couldn't figure out any reason > > to have try_to_freeze() called in net/sunrpc/svcsock.c:svc_recv() . > > It probably broke suspend at some point... leave it there. Processes > can stay in D period, waiting for NFS server to come back. > > and yes, we want nfs threads frozen, too (and anything that talks to > network). Speaking to nfs servers while we are suspending the machine > is not nice, and if that continues after snapshot, we'll act as a very > confused machine to the outside... OK, I've added set_freezable() to the NFS-related threads. [Updated patch is in the reply to Nigel.] Greetings, Rafael - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/