From: Trond Myklebust Subject: Re: [PATCH, RFC] lockd: stop abusing file_lock_list Date: Tue, 14 Feb 2006 17:27:30 -0500 Message-ID: <1139956050.7867.64.camel@lade.trondhjem.org> References: <20060214192051.GA20751@lst.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from pat.uio.no ([129.240.130.16]:33241 "EHLO pat.uio.no") by vger.kernel.org with ESMTP id S1422799AbWBNW1h (ORCPT ); Tue, 14 Feb 2006 17:27:37 -0500 To: Christoph Hellwig In-Reply-To: <20060214192051.GA20751@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, 2006-02-14 at 20:20 +0100, Christoph Hellwig wrote: > Currently lockd directly access the file_lock_list from fs/locks.c. > It does so to mark locks granted or reclaimable. This is very > suboptimal, because a) lockd needs to poke into locks.c internals, and > b) it needs to iterate over all locks in the system for marking locks > granted or reclaimable. > > This patch adds lists for granted and reclaimable locks to the nlm_host > structure instead, and adds locks to those. Thanks! From a quick eyeballing of the code, it looks good. I'll put it into the NFS_ALL stream for testing (and farm it out to Andrew if all goes well). Cheers Trond