Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753661AbZJ2Ijd (ORCPT ); Thu, 29 Oct 2009 04:39:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751939AbZJ2Ijc (ORCPT ); Thu, 29 Oct 2009 04:39:32 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:57949 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753300AbZJ2Ijb (ORCPT ); Thu, 29 Oct 2009 04:39:31 -0400 From: Arnd Bergmann To: Darren Hart Subject: Re: [PATCH] RFC: futex: make futex_lock_pi interruptible Date: Thu, 29 Oct 2009 09:39:32 +0100 User-Agent: KMail/1.12.1 (Linux/2.6.31-11-generic; KDE/4.3.1; x86_64; ; ) Cc: "lkml, " , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Eric Dumazet , Dinakar Guniguntala , "Stultz, John" References: <4AE63E3D.8030903@us.ibm.com> <4AE63FA3.8040208@us.ibm.com> In-Reply-To: <4AE63FA3.8040208@us.ibm.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200910290939.32485.arnd@arndb.de> X-Provags-ID: V01U2FsdGVkX18htcN2cInufXkWawAOy81DZrp+8bx5i4IsBZk 34e/PvoprpYedIzFlNqPe4Zy0LCKdKsRDdqf4NJXjd0Tc4mJEe iX/kqtGLLSr5LzUl8v41g== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 827 Lines: 18 On Tuesday 27 October 2009, Darren Hart wrote: > The following C test case demonstrates how this patch could be used to > implement interruptible locking. There is an awful lot of debug code and > some other relics of a hacked together test in there now, but if anyone > wanted to test the futex changes, this will do the trick. > Your test program uses a signal handler to interrupt the mutex. If you are using a signal handler already to implement a user space mutex_cancel, why can't you just do a longjmp out of the signal handler rather than modifying the kernel? Arnd <>< -- 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/