Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268483AbUILFxt (ORCPT ); Sun, 12 Sep 2004 01:53:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268484AbUILFxt (ORCPT ); Sun, 12 Sep 2004 01:53:49 -0400 Received: from smtp201.mail.sc5.yahoo.com ([216.136.129.91]:41349 "HELO smtp201.mail.sc5.yahoo.com") by vger.kernel.org with SMTP id S268483AbUILFxr (ORCPT ); Sun, 12 Sep 2004 01:53:47 -0400 Message-ID: <4143D855.9070005@yahoo.com.au> Date: Sun, 12 Sep 2004 15:02:13 +1000 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040810 Debian/1.7.2-2 X-Accept-Language: en MIME-Version: 1.0 To: Zwane Mwaikambo CC: Andrew Morton , torvalds@osdl.org, paulus@samba.org, linux-kernel@vger.kernel.org, anton@samba.org, jun.nakajima@intel.com, ak@suse.de, mingo@elte.hu Subject: Re: [PATCH] Yielding processor resources during lock contention References: <16703.60725.153052.169532@cargo.ozlabs.ibm.com> <20040911220003.0e9061ad.akpm@osdl.org> <4143D16F.30500@yahoo.com.au> <4143D491.6070006@yahoo.com.au> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 758 Lines: 20 Zwane Mwaikambo wrote: >>If yes, then shouldn't your lock be a blocking lock anyway? > > > We just happen to allow preemption since we know we're at an upper level > lock, so we may as well not disable preemption during contention. It > wouldn't be as straightforward to switch to a blocking lock. > OK that sounds alight. If it is a "I'm going to be spinning for ages, so schedule me off *now*" then I think it is wrong... but if it just allows you to keep the hypervisor preemption turned on, then fine. - 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/