From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757482AbZJDRAg (ORCPT ); Sun, 4 Oct 2009 13:00:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757116AbZJDRAf (ORCPT ); Sun, 4 Oct 2009 13:00:35 -0400 Received: from www.tglx.de ([62.245.132.106]:37783 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756877AbZJDRAf (ORCPT ); Sun, 4 Oct 2009 13:00:35 -0400 Date: Sun, 4 Oct 2009 18:59:46 +0200 (CEST) From: Thomas Gleixner To: Anirban Sinha cc: Ingo Molnar , linux-kernel@vger.kernel.org, Darren Hart , Peter Zijlstra , Kaz Kylheku , Anirban Sinha Subject: Re: futex question In-Reply-To: <4AC8CF32.8060108@anirban.org> Message-ID: References: <20091001092218.GH15345@elte.hu> <4AC68F13.8050601@us.ibm.com> <4AC8CF32.8060108@anirban.org> 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 On Sun, 4 Oct 2009, Anirban Sinha wrote: > >> 1) What caused you to instrument this path in the first place? Were you > >> seeing some unexpected behavior? > >> > >> 2) I wonder why we would need to clear the robust list, but I don't see other > >> things like pi_blocked_on, etc. in execve being cleared. I'm looking into > >> this now (perhaps we don't do the same cleanup, need to check).... have to get > >> on the plane... > > > > Hmm, just setting the robust list pointer to NULL fixes the problem at > > hand, but I wonder whether we need to call exit_robust_list() as > > well. > hmm. That is an interesting thought. But I wonder if acquiring a > lock and then exec()ing in the critical section is a legal thing to It's definitely legal. There is no law which forbids to do that. :) > do. It does not feel right. Currently, with or without my change, > such a thing would indefinitely block other waiters on the same > futex. Right. Which completely defeats the purpose of the robust list. Will have a look tomorrow. Thanks, tglx