From: Matthew Wilcox Subject: Re: lock_operations Date: Thu, 21 Nov 2002 11:16:28 +0000 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20021121111628.A2543@parcelfarce.linux.theplanet.co.uk> References: <20021120072050.B12656@parcelfarce.linux.theplanet.co.uk> <20021120182951.A27895@parcelfarce.linux.theplanet.co.uk> <15835.56539.619039.110804@charged.uio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Matthew Wilcox , linux-fsdevel@vger.kernel.org Return-path: To: Trond Myklebust Content-Disposition: inline In-Reply-To: <15835.56539.619039.110804@charged.uio.no>; from trond.myklebust@fys.uio.no on Wed, Nov 20, 2002 at 08:04:59PM +0100 List-Id: linux-fsdevel.vger.kernel.org On Wed, Nov 20, 2002 at 08:04:59PM +0100, Trond Myklebust wrote: > Not at the moment. I'm a bit curious, though, as to why you chose to > split out get_lock() as a separate callback method, but not > unlock(). Isn't that just an optimization? i see get_lock as a fundamentally different operation to set_lock. for one thing it returns a lock which set_lock doesn't. unlock is the same as setting a lock -- we have to deal with the same broken posix behaviours of removing overlapping locks that we own. yeah, they're different NLM calls, but that doesn't seem to be a big problem. -- Revolutions do not require corporate support.