From: Christoph Hellwig Subject: Re: [PATCH 9/17] locks: add lock cancel command Date: Mon, 9 Apr 2007 19:41:44 +0100 Message-ID: <20070409184144.GB28716@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@osdl.org, Trond Myklebust , Marc Eshel , linux-fsdevel@vger.kernel.org To: "J. Bruce Fields" Return-path: Received: from pentafluge.infradead.org ([213.146.154.40]:60790 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753220AbXDISlw (ORCPT ); Mon, 9 Apr 2007 14:41:52 -0400 Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Apr 05, 2007 at 07:40:59PM -0400, J. Bruce Fields wrote: > From: Marc Eshel - unquoted > > Lock managers need to be able to cancel pending lock requests. In the case > where the exported filesystem manages its own locks, it's not sufficient just > to call posix_unblock_lock(); we need to let the filesystem know what's > happening too. > > We do this by adding a new fcntl lock command: FL_CANCELLK. Some day this > might also be made available to userspace applications that could benefit from > an asynchronous locking api. Should we really add more and more subcases to ->lock that probably don't share implementation code? I'd much prefer adding different operations.