From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755135AbXGIJYR (ORCPT ); Mon, 9 Jul 2007 05:24:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751662AbXGIJYI (ORCPT ); Mon, 9 Jul 2007 05:24:08 -0400 Received: from smtp-out001.kontent.com ([81.88.40.215]:41216 "EHLO smtp-out.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751630AbXGIJYH convert rfc822-to-8bit (ORCPT ); Mon, 9 Jul 2007 05:24:07 -0400 From: Oliver Neukum To: Benjamin Herrenschmidt Subject: Re: [PATCH] Remove process freezer from suspend to RAM pathway Date: Mon, 9 Jul 2007 11:23:56 +0200 User-Agent: KMail/1.9.7 Cc: Alan Stern , Kyle Moffett , Nigel Cunningham , Pavel Machek , "Rafael J. Wysocki" , Matthew Garrett , linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org References: <200707090847.43378.oliver@neukum.org> <1183972420.5961.26.camel@localhost.localdomain> In-Reply-To: <1183972420.5961.26.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200707091123.57400.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 9. Juli 2007 schrieb Benjamin Herrenschmidt: > On Mon, 2007-07-09 at 08:47 +0200, Oliver Neukum wrote: > > Am Sonntag, 8. Juli 2007 schrieb Benjamin Herrenschmidt: > > > > But I'm not sure it's a good idea in the long run.  Think of a printer > > > > daemon, for example.  It shouldn't have to experience unexpected I/O > > > > problems merely because someone has decided to put the system to sleep. > > > > > > Why not ? Printer is offline when machine is asleep... trying to print > > > > Not necessarily. The machine must survive going to sleep while you are > > printing. Any other error return than -ERESTARTSYS is not an option. > > We can't simply change the ABI. > > Ugh ? Why returning an error from the printer driver to the userland > print server/daemon would prevent the machine from "surviving" ? I would > be happy with -EIO personally :-) Surviving is a bit strongly worded. Suspension is to be transparent. Apart from a jump in the system clock user space must not notice, thus returning errors due to suspension is not an option. Regards Oliver