Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755668AbZDKBXp (ORCPT ); Fri, 10 Apr 2009 21:23:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754619AbZDKBXf (ORCPT ); Fri, 10 Apr 2009 21:23:35 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:42198 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754562AbZDKBXe (ORCPT ); Fri, 10 Apr 2009 21:23:34 -0400 Date: Fri, 10 Apr 2009 18:19:44 -0700 (PDT) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: "Rafael J. Wysocki" cc: linux-pm@lists.linux-foundation.org, Takashi Iwai , Arjan van de Ven , LKML , Andrew Morton , Ingo Molnar Subject: Re: [linux-pm] [2.6.30-rc1-git2 regressions] Hibernation broken and (minor but annoying) audio problem In-Reply-To: <200904110206.33525.rjw@suse.com> Message-ID: References: <200904100057.43827.rjw@sisk.pl> <200904102058.36018.rjw@sisk.pl> <200904110206.33525.rjw@suse.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) 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: 1926 Lines: 50 On Sat, 11 Apr 2009, Rafael J. Wysocki wrote: > > On Friday 10 April 2009, Linus Torvalds wrote: > > > > On Fri, 10 Apr 2009, Rafael J. Wysocki wrote: > > > > > > I've just verified that the resume-after-hibernation issue goes away after > > > reverting commit 9710794383ee5008d67f1a6613a4717bf6de47bc > > > (async: remove the temporary (2.6.29) "async is off by default" code) , so it > > > is async-related. > > > > Arjan? Clearly all the necessary fixes weren't found.. > > > > There _is_ a module loading problem wrt initmem - I think you found that > > and we added a hack for it for the ACPI battery driver. I wonder if we're > > hitting a similar issue now with module discovery: modules that use > > "async_schedule()" to do their discovery asynchronously are now not > > necessarily fully "done" when the module is loaded. > > > > And so, anything that expected the devices to be available after module > > load (like they used to) would be screwed. > > > > IOW, maybe something like the totally untested patch appended here (that > > should also allow us to make the ACPI battery code to go back to using > > __init). > > I tested it and it worked. Hmm. I'm not 100% sure that patch is good. The reason? I think it's going to deadlock if an async caller ends up wanting to load a module, because then the nestecd "async_synchronize_full()" will basically want to wait for itself. So it's a good test-patch, and maybe no async caller ever loads a module, but it makes me a bit nervous. But the fact that it fixes things for you at least means that the _reason_ for the problem is know, and maybe there are alternative solutions. Arjan? Linus -- 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/