Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763270AbYCFV6m (ORCPT ); Thu, 6 Mar 2008 16:58:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752703AbYCFV6d (ORCPT ); Thu, 6 Mar 2008 16:58:33 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:55899 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752595AbYCFV6c (ORCPT ); Thu, 6 Mar 2008 16:58:32 -0500 Date: Thu, 6 Mar 2008 16:58:31 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: "Rafael J. Wysocki" cc: pm list , Alexey Starikovskiy , Pavel Machek , LKML Subject: Re: [RFC][PATCH] PM: Make PM core handle device registrations concurrent with suspend/hibernation In-Reply-To: <200803062228.28104.rjw@sisk.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1072 Lines: 28 On Thu, 6 Mar 2008, Rafael J. Wysocki wrote: > > > Well, can it happen in practice? If it can, then what way can it happen? > > > > Yes, it can happen in practice when a new module is loaded. In some > > ways, modules' init routines are like probe methods. > > Hmm, I'm not sure if it really is possible to load a module when all devices > have been suspended. Never mind, though. You can load the module before devices are suspended, and then its init routine can run while the suspend is starting. > > To be safe, I think we should make system sleep mutually exclusive with > > module loading. > > Okay, is the (yet another) version of the patch below fine by you? Yes, it's fine. Mutual exclusion with module loading can be added later. (Ironically, it may require putting pm_sleep_rwsem back!) Alan Stern -- 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/