Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750833AbWH2Tbv (ORCPT ); Tue, 29 Aug 2006 15:31:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750714AbWH2Tbv (ORCPT ); Tue, 29 Aug 2006 15:31:51 -0400 Received: from omx1-ext.sgi.com ([192.48.179.11]:10941 "EHLO omx1.americas.sgi.com") by vger.kernel.org with ESMTP id S1750833AbWH2Tbu (ORCPT ); Tue, 29 Aug 2006 15:31:50 -0400 Date: Tue, 29 Aug 2006 12:31:02 -0700 From: Paul Jackson To: paulmck@us.ibm.com Cc: ego@in.ibm.com, mingo@elte.hu, nickpiggin@yahoo.com.au, arjan@infradead.org, rusty@rustcorp.com.au, torvalds@osdl.org, akpm@osdl.org, linux-kernel@vger.kernel.org, arjan@intel.linux.com, davej@redhat.com, dipankar@in.ibm.com, vatsa@in.ibm.com, ashok.raj@intel.com Subject: Re: [RFC][PATCH 4/4] Rename lock_cpu_hotplug/unlock_cpu_hotplug Message-Id: <20060829123102.88de61fa.pj@sgi.com> In-Reply-To: <20060829180511.GA1495@us.ibm.com> References: <20060824103417.GE2395@in.ibm.com> <1156417200.3014.54.camel@laptopd505.fenrus.org> <20060824140342.GI2395@in.ibm.com> <1156429015.3014.68.camel@laptopd505.fenrus.org> <44EDBDDE.7070203@yahoo.com.au> <20060824150026.GA14853@elte.hu> <20060825035328.GA6322@in.ibm.com> <20060827005944.67f51e92.pj@sgi.com> <20060829180511.GA1495@us.ibm.com> Organization: SGI X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.3; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 855 Lines: 24 Paul E. McKenney wrtoe: > Can the locusts reasonably take a return value from the acquisition > primitive and feed it to the release primitive? Yes - the locusts typically do: mutex_lock(&callback_mutex); ... a line or two to read or write cpusets ... mutex_unlock(&callback_mutex); The lock and unlock are just a few lines apart. I could easily pass a value from the lock (acquisition) to the unlock (release). Why do you ask? -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.925.600.0401 - 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/