From: "J. Bruce Fields" Subject: nfs locking for cluster filesystems Date: Thu, 5 Apr 2007 19:40:50 -0400 Message-ID: <28173.0560040616$1175816487@news.gmane.org> Cc: Trond Myklebust , Marc Eshel , linux-fsdevel@vger.kernel.org To: akpm@osdl.org Return-path: Received: from snoopy.citi.umich.edu ([141.211.133.115]:37747 "EHLO snoopy.citi.umich.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753313AbXDEXlK (ORCPT ); Thu, 5 Apr 2007 19:41:10 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org If a filesystem defines a ->lock() method, that method is called when an application uses fcntl(), but it isn't called from the code path used by the lock managers (lockd (for nfsv2/v3) and nfsd itself (for v4)). The following patches remedy that. (This hasn't been a problem until recently because the filesystems that define ->lock (nfs, cifs, etc.) aren't filesystems that nfsd exports. The arrival of cluster filesystems changes that.) We'd like an ack from Trond and/or Christoph before this goes into mainline, but it seems ready at least for testing in -mm. The first four to six patches are actually just locks.c cleanup. --b. (Apologies for any duplicate mail; git-send-email doesn't always seem to agree with me....)