From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933458AbXGWAE7 (ORCPT ); Sun, 22 Jul 2007 20:04:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763000AbXGWAEv (ORCPT ); Sun, 22 Jul 2007 20:04:51 -0400 Received: from ozlabs.org ([203.10.76.45]:43128 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761148AbXGWAEv (ORCPT ); Sun, 22 Jul 2007 20:04:51 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18083.61595.217126.824924@cargo.ozlabs.ibm.com> Date: Mon, 23 Jul 2007 10:04:43 +1000 From: Paul Mackerras To: Nigel Cunningham Cc: Alan Stern , david@lang.hm, Miklos Szeredi , nigel@suspend2.net, linux-kernel@vger.kernel.org, miltonm@bga.com, ying.huang@intel.com, linux-pm@lists.linux-foundation.org, Jeremy Maitin-Shepard Subject: Re: [linux-pm] Re: Hibernation considerations In-Reply-To: <200707230842.22121.nigel@nigel.suspend2.net> References: <200707230842.22121.nigel@nigel.suspend2.net> X-Mailer: VM 7.19 under Emacs 21.4.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Nigel Cunningham writes: > I guess I want to persist because all of these issues aren't utterly > unsolvable. It's just that we don't have the infrastructure yet to > figure out the solutions to these issues trivially. Take, for example, Ever heard of the halting problem? :) It's not just a matter of infrastructure. You very quickly get into questions that are mathematically undecideable. > the locking issue. If we could call some function to say "What process > holds this lock?", then task A could know that it's waiting on task B > and put that information somewhere. We could then use the information > to freeze task B before task A. But how would that help? If task B holds the lock, then we can't freeze it until it's released the lock. Then the question is, what does task B need in order to get to the point where it releases the lock? And so on. It rapidly gets not just extremely messy, but actually impossible to compute in general. Paul.