From: Matthew Wilcox Subject: Re: inode rwlock instead of semaphore Date: Sun, 2 Feb 2003 17:42:15 +0000 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030202174215.G21040@parcelfarce.linux.theplanet.co.uk> References: <20030202100155.A18636@schatzie.adilger.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: To: linux-fsdevel@vger.kernel.org, Alexander Viro Content-Disposition: inline In-Reply-To: <20030202100155.A18636@schatzie.adilger.int>; from adilger@clusterfs.com on Sun, Feb 02, 2003 at 10:01:55AM -0700 List-Id: linux-fsdevel.vger.kernel.org On Sun, Feb 02, 2003 at 10:01:55AM -0700, Andreas Dilger wrote: > I'm wondering why we use a semaphore to lock directories on lookups instead > of a rwlock? This would allow parallel lookups on directory entries instead > of single threading. We have a need for directories with millions of files > in them, and being able to start parallel lookups would be a big performance > boost I think. You mean a rwsem, not a rwlock, I assume? How about starvation issues? -- "It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk