Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 30 Jan 2002 04:34:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 30 Jan 2002 04:34:37 -0500 Received: from nrg.org ([216.101.165.106]:33648 "EHLO nrg.org") by vger.kernel.org with ESMTP id ; Wed, 30 Jan 2002 04:34:35 -0500 Date: Wed, 30 Jan 2002 01:34:28 -0800 (PST) From: Nigel Gamble Reply-To: nigel@nrg.org To: Andrew Morton cc: Robert Love , Linus Torvalds , , Subject: Re: [PATCH] 2.5: push BKL out of llseek In-Reply-To: <3C576648.84CE142B@zip.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jan 2002, Andrew Morton wrote: > Nigel Gamble wrote: > > Am I remembering the problem correctly? > > I don't think so :) > > The problem was that the semaphore was highly contended, so the > losing process was explicitly scheduling away. > > This doesn't necessarily mean that it was a long-held lock. In > this case, it was a short-held lock, but it was also very *frequently* > being held and released. This is a scenario where a spinlock is > heaps more appropriate than a semaphore. Oh, well in that case, I agree that a spinlock is more appropriate. Nigel Gamble nigel@nrg.org Mountain View, CA, USA. http://www.nrg.org/ - 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/