NFS client patches for Linux 2.6.7

The following set of patches fix known issues with the 2.6.7 NFS client code, and significantly enhance the support for NFSv4.

linux-2.6.7-01-fix_locks.dif:

VFS: Minimal fix to posix_same_owner() to only use the fl_owner_t field in all cases when the caller is not lockd

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>

linux-2.6.7-02-fix_locks2.dif:

VFS: More extensive fix to locking code. Add file_lock_operations to deal with copy/release of private data in the file_lock->fl_u field. Add filesystem hooks for steal_locks(): changing the lockowner is hardly a supported concept in most file locking protocols.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>

linux-2.6.7-03-fix_nfsd.dif:

NFSv4 server: Fix up nfs4state.c to support the file_lock_operations, and the lock_manager_operations.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>

linux-2.6.7-04-fix_lockd.dif:

NLM/lockd: Fix up lockd to make use of the new interface. In particular set up fl_compare_owner() methods for both client and server.

NLM/lockd: Make the client release all locks in a "steal_locks" situation.

NLM/lockd: Fix up copying/release of the file_lock->fl_u.nfs_fl private data.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>

linux-2.6.7-05-nlm_lockowner.dif:

NLM/lockd: set up a unique mapping between the fl_owner_t and a unique 32-bit "pid" on the client side. We can't use the real pid of the process/thread 'cos CLONE_FILES does not automatically imply CLONE_THREAD.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>

linux-2.6.7-06-cleanup_locks.dif:

NLM/lockd: Move fl_insert, fl_remove, into struct file_lock_operations.

NLM/lockd: Move fl_notify, into struct lock_manager_operations.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>

linux-2.6.7-07-cleanup_posix.dif:

NLM/lockd/NFSv3/CIFS: Make the filesystem responsible for calling posix_lock_file() if it needs to. This means it can be done under the correct atomicity locks.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>

linux-2.6.7-NLM_FIXES.dif:

All of the above.


Last modified: Mon Jan 05 14:33:10 EST 2004
[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -
[TXT]linux-2.6.7-01-fix_locks.dif29-Jun-2004 23:04 2.2K
[TXT]linux-2.6.7-02-fix_locks2.dif29-Jun-2004 23:32 4.6K
[TXT]linux-2.6.7-03-fix_nfsd.dif29-Jun-2004 17:46 2.4K
[TXT]linux-2.6.7-04-fix_lockd.dif29-Jun-2004 23:19 9.6K
[TXT]linux-2.6.7-05-nlm_lockowner.dif29-Jun-2004 23:32 8.4K
[TXT]linux-2.6.7-06-cleanup_locks.dif30-Jun-2004 00:44 5.2K
[TXT]linux-2.6.7-07-cleanup_posix.dif02-Jul-2004 13:30 6.3K
[TXT]linux-2.6.7-NLM_FIXES.dif30-Jun-2004 17:12 31K

Return to main menu

Please address all comments about this page to Trond Myklebust
About Trond
Last modified: Fri Mar 11 17:17:40 EST 2005