NFS client patches for Linux 2.6.22-rc6

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

linux-2.6.22-001-odirect_cleanup.dif:

From: Chuck Lever <chuck.lever@oracle.com>

Date: Sat, 19 May 2007 17:22:52 -0400

NFS: Clean ups in fs/nfs/direct.c

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-002-odirect_accept_short_get_user_pages.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 22 May 2007 10:22:20 -0400

NFS: Don't fail an O_DIRECT read/write if get_user_pages() returns pages

There is no need to fail the entire O_DIRECT read/write just because get_user_pages() returned fewer pages than we requested.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-003-fix_uptodate_write.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 19 May 2007 11:58:03 -0400

NFS: Don't mark a written page as uptodate until it is on disk

The write may fail, so we should not mark the page as uptodate until we are certain that the data has been accepted and written to disk by the server.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-004-read_optimisation.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 20 May 2007 13:05:05 -0400

NFS: Minor read optimisation...

Since PG_uptodate may now end up getting set during the call to nfs_wb_page(), we can avoid putting a read request on the wire in those situations.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-005-cleanup_open_context.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 5 Jun 2007 10:42:27 -0400

NFS: Replace vfsmount and dentry in nfs_open_context with struct path

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-006-cleanup_path2.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 5 Jun 2007 11:46:42 -0400

NFSv4: Cleanup: pass the nfs_open_context to open recovery code

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-007-ensure_open_pins_vfsmount.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 5 Jun 2007 12:30:00 -0400

NFSv4: Ensure asynchronous open() calls always pin the mountpoint

A number of race conditions may currently ensue if the user presses ^C and then unmounts the partition while an asynchronous open() is in progress.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-008-fix_close_oops.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 5 Jun 2007 10:31:33 -0400

NFSv4: Ensure that nfs4_do_close() doesn't race with umount

nfs4_do_close() does not currently have any way to ensure that the user won't attempt to unmount the partition while the asynchronous RPC call is completing. This again may cause Oopses in nfs_update_inode().

Add a vfsmount argument to nfs4_close_state to ensure that the partition remains mounted while we're closing the file.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-009-cleanup_nfs4_call_async.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Mon, 11 Jun 2007 23:05:07 -0400

NFSv4: Clean up nfs4_call_async()

Use rpc_run_task() instead of doing it ourselves.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-010-fix_nfs_reval_fsid.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 5 Jun 2007 13:26:15 -0400

NFS: Fix nfs_reval_fsid()

We don't need to revalidate the fsid on the root directory. It suffices to revalidate it on the current directory.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-011-use_highmem_for_symlinks.dif:

From: Jeff Layton <jlayton@redhat.com>

Date: Thu, 7 Jun 2007 09:58:08 -0400

NFS: Use GFP_HIGHUSER for page allocation in nfs_symlink()

nfs_symlink() allocates a GFP_KERNEL page for the pagecache. Most pagecache pages are allocated using GFP_HIGHUSER, and there's no reason not to do that in nfs_symlink() as well.

Signed-off-by: Jeff Layton <jlayton@redhat.com>

linux-2.6.22-012-reenable_forced_umount.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 5 Jun 2007 19:13:47 -0400

NFS: Re-enable forced umounts

They disappeared some time around 2.6.18.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-013-fix_nfs4_oexcl_create.dif:

From: Jeff Layton <jlayton@redhat.com>

Date: Tue, 5 Jun 2007 14:49:03 -0400

NFS4: on a O_EXCL OPEN make sure SETATTR sets the fields holding the verifier

The Linux NFS4 client simply skips over the bitmask in an O_EXCL open call and so it doesn't bother to reset any fields that may be holding the verifier. This patch has us save the first two words of the bitmask (which is all the current client has #defines for). The client then later checks this bitmask and turns on the appropriate flags in the sattr->ia_verify field for the following SETATTR call.

This patch only currently checks to see if the server used the atime and mtime slots for the verifier (which is what the Linux server uses for this). I'm not sure of what other fields the server could reasonably use, but adding checks for others should be trivial.

Signed-off-by: Jeff Layton <jlayton@redhat.com>

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-014-fixup_nfs3_oexcl_create.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 5 Jun 2007 19:27:00 -0400

NFS: nfs3_proc_create() should use nfs_post_op_update_inode()

Also get rid of a redundant call to nfs_setattr_update_inode(). The call to nfs3_proc_setattr() already takes care of that.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-015-fix_nfs_access_shrinker.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 5 Jun 2007 19:23:43 -0400

NFS: Fix an Oops in the nfs_access_cache_shrinker()

The nfs_access_cache_shrinker may race with nfs_access_zap_cache().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-016-mount_noshared.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Wed, 16 May 2007 16:53:28 -0400

NFS: Add the mount option "nosharecache"

Prior to David Howell's mount changes in 2.6.18, users who mounted different directories which happened to be from the same filesystem on the server would get different super blocks, and hence could choose different mount options. As long as there were no hard linked files that crossed from one subtree to another, this was quite safe. Post the changes, if the two directories are on the same filesystem (have the same 'fsid'), they will share the same super block, and hence the same mount options.

Add a flag to allow users to elect not to share the NFS super block with another mount point, even if the fsids are the same. This will allow users to set different mount options for the two different super blocks, as was previously possible. It is still up to the user to ensure that there are no cache coherency issues when doing this, however the default behaviour will be to share super blocks whenever two paths result in the same fsid.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-017-mount_shared_return_error.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Wed, 16 May 2007 16:53:28 -0400

NFS: Error when mounting the same filesystem with different options

Unless the user sets the NFS_MOUNT_NOSHAREDCACHE mount flag, we should return EBUSY if the filesystem is already mounted on a superblock that has set conflicting mount options.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-018-convert_nfs_page_to_kref.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 13:26:38 -0400

NFS: Convert struct nfs_page to use krefs

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-019-rename_NFS_PAGE_TAG_WRITEBACK.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 15:10:24 -0400

NFS cleanup: Rename NFS_PAGE_TAG_WRITEBACK to NFS_PAGE_TAG_LOCKED

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-020-improve_scan_commit.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 15:27:42 -0400

NFS cleanup: speed up nfs_scan_commit using radix tree tags

Add a tag for requests that are waiting for a COMMIT

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-021-remove_dirty_commit_lists.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 15:40:59 -0400

NFS: Remove the redundant 'dirty' and 'commit' lists from nfs_inode

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-022-nfs_scan_list_dont_overflow.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 15:47:53 -0400

NFS: Prevent integer overflow in nfs_scan_list()

Also ensure that nfs_inode ncommit and npages are large enough to represent all possible values for the number of pages.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-023-resched_in_nfs_scan_list.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 16:02:34 -0400

NFS: reduce latency by using conditional rescheduling in nfs_scan_list

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-024-convert_nfs_open_context_to_kref.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 16:02:44 -0400

NFS: Convert struct nfs_open_context to use a kref

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-025-convert_nfs_opendata_to_kref.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 16:02:44 -0400

NFSv4: Convert struct nfs4_opendata to use struct kref

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-026-make_tk_tasks_list_per_client.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 14 Jun 2007 16:40:14 -0400

SUNRPC: Move rpc_task->tk_task list into struct rpc_clnt

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-027-add_a_per_client_spinlock.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 16 Jun 2007 14:17:01 -0400

SUNRPC: Add a per-rpc_clnt spinlock

Use that to protect the rpc_clnt->cl_tasks list instead of using a global lock.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-028-cleanup_debug.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 16 Jun 2007 14:17:01 -0400

SUNRPC: Clean up tk_pid allocation and make it lockless

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-029-convert_cl_users_to_kref.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 14 Jun 2007 16:40:31 -0400

SUNRPC: Convert rpc_clnt->cl_users to a kref

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-030-kill_rpc_clnt_cl_dead.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 9 Jun 2007 19:39:12 -0400

SUNRPC: Kill rpc_clnt->cl_dead

Its use is at best racy, and there is only one user (lockd), which has additional locking that makes the whole thing redundant.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-031-kill_rpc_clnt_cl_oneshot.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 9 Jun 2007 19:49:36 -0400

SUNRPC: Kill rpc_clnt->cl_oneshot

Replace it with explicit calls to rpc_shutdown_client() or rpc_destroy_client() (for the case of asynchronous calls).

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-032-rpc_clone_should_take_a_reference.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 14 Jun 2007 16:40:32 -0400

SUNRPC: Make rpc_clone take a reference instead of using cl_count

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-033-rpc_remove_cl_count.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 14 Jun 2007 16:40:32 -0400

SUNRPC: Remove rpc_clnt->cl_count

The kref now does most of what cl_count + cl_user used to do. The only remaining role for cl_count is to tell us if we are in a 'shutdown' phase. We can provide that information using a single bit field instead of a full atomic counter.

Also rename rpc_destroy_client() to rpc_close_client(), which reflects better what its role is these days.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-034-rpc_clone_fix_race.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 17 Jun 2007 17:07:54 -0400

SUNRPC: Don't create an rpc_pipefs directory before rpc_clone is initialised

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-035-optimise_rpciod_up.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 14 Jun 2007 17:08:36 -0400

SUNRPC: Optimise rpciod_up()

Instead of taking the mutex every time we just need to increment/decrement rpciod_users, we can optmise by using atomic_inc_not_zero and atomic_dec_and_test.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-036-create_client_calls_rpciod_up.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 14 Jun 2007 17:26:17 -0400

SUNRPC: Make create_client() take a reference to the rpciod workqueue

Ensures that an rpc_client always has the possibility to send asynchronous RPC calls.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-037-remove_redundant_rpciod_up.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 14 Jun 2007 17:31:58 -0400

SUNRPC: Remove redundant calls to rpciod_up()/rpciod_down()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-038-cleanup_rpc_sched_lock.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 16 Jun 2007 14:18:40 -0400

SUNRPC: Move rpc_register_client and friends into net/sunrpc/clnt.c

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-039-simplify_rpc_call.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 12 Jun 2007 10:02:37 -0400

SUNRPC: clean up rpc_call_async/rpc_call_sync/rpc_run_task

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-040-fix_reconnect_deadlock.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 14 Jun 2007 18:00:42 -0400

SUNRPC: fix hang due to eventd deadlock...

Brian Behlendorf writes:

The root cause of the NFS hang we were observing appears to be a rare deadlock between the kernel provided usermodehelper API and the linux NFS client. The deadlock can arise because both of these services use the generic linux work queues. The usermodehelper API run the specified user application in the context of the work queue. And NFS submits both cleanup and reconnect work to the generic work queue for handling. Normally this is fine but a deadlock can result in the following situation.

- NFS client is in a disconnected state

- [events/0] runs a usermodehelper app with an NFS dependent operation, this triggers an NFS reconnect.

- NFS reconnect happens to be submitted to [events/0] work queue.

- Deadlock, the [events/0] work queue will never process the reconnect because it is blocked on the previous NFS dependent operation which will not complete.`

The solution is simply to run reconnect requests on rpciod.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-041-cred_backpointer_to_auth.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 7 Jun 2007 10:14:14 -0400

SUNRPC: Add a backpointer from the struct rpc_cred to the rpc_auth

Cleans up an issue whereby rpcsec_gss uses the rpc_clnt->cl_auth. If we want to be able to add several rpc_auths to a single rpc_clnt, then this abuse must go.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-042-remove_gss_auth_lock.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 7 Jun 2007 10:14:14 -0400

SUNRPC: Remove the gss_auth spinlock

We're just as well off using the inode spinlock instead.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-043-auth_gss_downcall_always_match_cred.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 7 Jun 2007 10:14:15 -0400

SUNRPC: Always match an upcall message in gss_pipe_downcall()

It used to be possible for an rpc.gssd daemon to stuff the RPC credential cache for any rpc client simply by creating RPCSEC_GSS contexts and then doing downcalls. In practice, no daemons ever made use of this feature.

Remove this feature now, since it will be impossible to figure out which mechanism a given context actually matches if we enable more than one gss mechanism to use the same upcall pipe.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-044-rpc_pipefs_move_downcall_queue.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 7 Jun 2007 15:31:36 -0400

SUNRPC: Add a downcall queue to struct rpc_inode

Currently, the downcall queue is tied to the struct gss_auth, which means that different RPCSEC_GSS pseudoflavours must use different upcall pipes. Add a list to struct rpc_inode that can be used instead.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-045-fix_rpc_mkpipe.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 7 Jun 2007 18:28:02 -0400

SUNRPC: Enable non-exclusive create in rpc_mkpipe()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-046-rpc_pipe_cleanup.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Fri, 8 Jun 2007 14:14:46 -0400

SUNRPC: Clean up rpc_pipefs.

Add a dentry_ops with a d_delete() method in order to ensure that dentries are removed as soon as the last reference is gone.

Clean up rpc_depopulate() so that it only removes files that were created via rpc_populate().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-047-track_kernel_rpc_pipe_users.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Fri, 8 Jun 2007 14:14:53 -0400

SUNRPC: Add a field to track the number of kernel users of an rpc_pipe

This allows us to correctly deduce when we need to remove the pipe.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-048-convert_rpc_pipefs_to_fsnotify.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Thu, 7 Jun 2007 22:44:34 -0400

SUNRPC: Convert rpc_pipefs to use the generic filesystem notification hooks

This will allow rpc.gssd to use inotify instead of dnotify in order to locate new rpc upcall pipes.

This also requires the exporting of __audit_inode_child(), which is used by fsnotify_create() and fsnotify_mkdir(). Ccing David Woodhouse.

Cc: David Woodhouse <dwmw2@infradead.org>

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-049-fix_auth_memory_leak.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 9 Jun 2007 15:41:42 -0400

SUNRPC: Fix a memory leak in the auth credcache code

The leak only affects the RPCSEC_GSS caches, since they are the only ones that are dynamically allocated... Rename the existing rpcauth_free_credcache() to rpcauth_clear_credcache() in order to better describe its role, then add a new function rpcauth_destroy_credcache() that actually frees the cache in addition to clearing it out.

Also move the call to destroy the credcache in gss_destroy() to come before the rpc upcall pipe is unlinked.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-050-fix_typo_in_auth_unix.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 24 Jun 2007 15:24:29 -0400

SUNRPC: Fix a typo in unx_create()

We want to set the unix_cred_cache.nextgc on the first call to unx_create(), which should be when unix_auth.au_count === 1

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-051-fix_racy_gss_destroy.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 9 Jun 2007 15:42:01 -0400

SUNRPC: Fix a memory leak in gss_create()

Fix a memory leak in gss_create() whereby the rpc credcache was not being freed if the rpc_mkpipe() call failed.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-052-fix_racy_rpcauth_create.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 9 Jun 2007 16:15:46 -0400

SUNRPC: Fix races in rpcauth_create

See the FIXME: auth_flavors[] really needs a lock and module refcounting.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-053-make_rpc_ping_static.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 23 Jun 2007 10:17:16 -0400

SUNRPC: Make rpc_ping() static

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-054-add_rpc_call_null.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 23 Jun 2007 10:17:16 -0400

SUNRPC: Add the helper function 'rpc_call_null()'

Does a NULL RPC call and returns a pointer to the resulting rpc_task. The call may be either synchronous or asynchronous.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-055-rename_rpc_destroy_auth.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 23 Jun 2007 10:46:47 -0400

SUNRPC: Rename rpcauth_destroy() to rpcauth_release()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-056-make_auth_and_cred_operations_const.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 23 Jun 2007 20:17:58 -0400

SUNRPC: Mark auth and cred operation tables as constant.

Also do the same for gss_api operation tables.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-057-cleanup_cred_initialisation.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 23 Jun 2007 19:55:31 -0400

SUNRPC: Clean up rpc credential initialisation

Add a helper rpc_cred_init()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-058-cleanup_remove_auth_unix_casts.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Mon, 25 Jun 2007 09:48:25 -0400

SUNRPC: replace casts in auth_unix.c with container_of()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-059-make_cr_flags_updates_atomic.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Mon, 25 Jun 2007 10:15:15 -0400

SUNRPC: Enforce atomic updates of rpc_cred->cr_flags

Convert to the use of atomic bitops...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-060-cleanup_auth_garbage_collection.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sat, 23 Jun 2007 19:45:36 -0400

SUNRPC: cleanup rpc credential cache garbage collection

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-061-make_auth_lookup_use_rcu.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 24 Jun 2007 15:55:26 -0400

SUNRPC: Convert the credcache lookup code to use RCU

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-062-make_credcache_lock_local.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Sun, 24 Jun 2007 15:57:57 -0400

SUNRPC: Give credential cache a local spinlock

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-063-convert_garbage_collector_to_shrinker.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Mon, 25 Jun 2007 17:11:20 -0400

SUNRPC: Convert the credential garbage collector into a shrinker callback

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-064-convert_gss_ctx_lock_to_rcu.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 26 Jun 2007 19:18:38 -0400

SUNRPC: Convert gss_ctx_lock to an RCU lock

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-065-allow_auth_cleanup.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 26 Jun 2007 16:57:41 -0400

SUNRPC: Allow rpc_auth to run clean up before the rpc_client is destroyed

RPCSEC_GSS needs to be able to send NULL RPC calls to the server in order to free up any remaining GSS contexts.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-066-remove_task_tk_auth.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Wed, 27 Jun 2007 14:29:04 -0400

SUNRPC: Remove the tk_auth macro...

We should almost always be deferencing the rpc_auth struct by means of the credential's cr_auth field instead of the rpc_clnt->cl_auth anyway. Fix up that historical mistake, and remove the macro that propagated it.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-067-dont_destroy_rpc_auth_before_creds.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Wed, 27 Jun 2007 14:29:12 -0400

SUNRPC: Ensure that the struct gss_auth lifetime exceeds the credential's

Add a refcount in order to ensure that the gss_auth doesn't disappear from underneath us while we're freeing up GSS contexts.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-068-ensure_rpcsecgss_destroys_context.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Tue, 26 Jun 2007 17:04:57 -0400

SUNRPC: Ensure RPCSEC_GSS destroys the security context when freeing a cred

Do so by set the gc_proc field to RPC_GSS_PROC_DESTROY, and then sending a NULL RPC call.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-069-suppress_call_verify_printks.dif:

From: Trond Myklebust <Trond.Myklebust@netapp.com>

Date: Wed, 27 Jun 2007 18:30:26 -0400

SUNRPC: Suppress some noisy and unnecessary printk() calls in call_verify()

Convert them into dprintk() calls.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

linux-2.6.22-NFS_ALL.dif:

All of the above

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[TXT]linux-2.6.22-001-odi..>2007-05-30 20:19 1.3K 
[TXT]linux-2.6.22-002-odi..>2007-05-30 20:19 1.5K 
[TXT]linux-2.6.22-003-fix..>2007-05-24 15:19 2.1K 
[TXT]linux-2.6.22-004-rea..>2007-05-24 15:19 2.2K 
[TXT]linux-2.6.22-005-cle..>2007-06-06 00:44 9.8K 
[TXT]linux-2.6.22-006-cle..>2007-06-06 00:44 7.0K 
[TXT]linux-2.6.22-007-ens..>2007-06-06 00:44 7.8K 
[TXT]linux-2.6.22-008-fix..>2007-06-28 03:10 9.1K 
[TXT]linux-2.6.22-009-cle..>2007-06-28 03:10 2.9K 
[TXT]linux-2.6.22-010-fix..>2007-06-06 00:44 2.0K 
[TXT]linux-2.6.22-011-use..>2007-06-28 03:10 799  
[TXT]linux-2.6.22-012-ree..>2007-06-28 03:10 950  
[TXT]linux-2.6.22-013-fix..>2007-06-28 03:10 4.4K 
[TXT]linux-2.6.22-014-fix..>2007-06-06 00:44 1.0K 
[TXT]linux-2.6.22-015-fix..>2007-06-28 03:10 1.0K 
[TXT]linux-2.6.22-016-mou..>2007-06-28 03:10 6.6K 
[TXT]linux-2.6.22-017-mou..>2007-06-28 03:10 2.7K 
[TXT]linux-2.6.22-018-con..>2007-06-28 03:10 3.8K 
[TXT]linux-2.6.22-019-ren..>2007-06-28 03:10 5.2K 
[TXT]linux-2.6.22-020-imp..>2007-06-28 03:10 4.2K 
[TXT]linux-2.6.22-021-rem..>2007-06-28 03:10 3.2K 
[TXT]linux-2.6.22-022-nfs..>2007-06-28 03:10 1.1K 
[TXT]linux-2.6.22-023-res..>2007-06-28 03:10 621  
[TXT]linux-2.6.22-024-con..>2007-06-28 03:10 2.9K 
[TXT]linux-2.6.22-025-con..>2007-06-28 03:10 5.0K 
[TXT]linux-2.6.22-026-mak..>2007-06-28 03:10 8.7K 
[TXT]linux-2.6.22-027-add..>2007-06-28 03:10 5.0K 
[TXT]linux-2.6.22-028-cle..>2007-06-28 03:10 1.4K 
[TXT]linux-2.6.22-029-con..>2007-06-28 03:10 6.0K 
[TXT]linux-2.6.22-030-kil..>2007-06-28 03:10 3.0K 
[TXT]linux-2.6.22-031-kil..>2007-06-28 03:10 6.9K 
[TXT]linux-2.6.22-032-rpc..>2007-06-28 03:10 1.0K 
[TXT]linux-2.6.22-033-rpc..>2007-06-28 03:10 4.1K 
[TXT]linux-2.6.22-034-rpc..>2007-06-28 03:10 1.5K 
[TXT]linux-2.6.22-035-opt..>2007-06-28 03:10 2.6K 
[TXT]linux-2.6.22-036-cre..>2007-06-28 03:10 3.4K 
[TXT]linux-2.6.22-037-rem..>2007-06-28 03:10 4.4K 
[TXT]linux-2.6.22-038-cle..>2007-06-28 03:10 5.4K 
[TXT]linux-2.6.22-039-sim..>2007-06-28 03:10 4.8K 
[TXT]linux-2.6.22-040-fix..>2007-06-16 18:28 3.6K 
[TXT]linux-2.6.22-041-cre..>2007-06-16 18:28 2.9K 
[TXT]linux-2.6.22-042-rem..>2007-06-16 18:28 6.4K 
[TXT]linux-2.6.22-043-aut..>2007-06-16 18:28 3.8K 
[TXT]linux-2.6.22-044-rpc..>2007-06-16 18:28 4.9K 
[TXT]linux-2.6.22-045-fix..>2007-06-16 18:28 2.0K 
[TXT]linux-2.6.22-046-rpc..>2007-06-28 03:10 4.2K 
[TXT]linux-2.6.22-047-tra..>2007-06-28 03:10 2.0K 
[TXT]linux-2.6.22-048-con..>2007-06-28 03:10 2.1K 
[TXT]linux-2.6.22-049-fix..>2007-06-16 18:28 3.9K 
[TXT]linux-2.6.22-050-fix..>2007-06-28 03:10 902  
[TXT]linux-2.6.22-051-fix..>2007-06-16 18:28 1.3K 
[TXT]linux-2.6.22-052-fix..>2007-06-16 18:28 2.4K 
[TXT]linux-2.6.22-053-mak..>2007-06-28 03:10 1.6K 
[TXT]linux-2.6.22-054-add..>2007-06-28 03:10 1.6K 
[TXT]linux-2.6.22-055-ren..>2007-06-28 03:10 2.0K 
[TXT]linux-2.6.22-056-mak..>2007-06-28 03:10 7.3K 
[TXT]linux-2.6.22-057-cle..>2007-06-28 03:10 4.9K 
[TXT]linux-2.6.22-058-cle..>2007-06-28 03:10 1.5K 
[TXT]linux-2.6.22-059-mak..>2007-06-28 03:10 8.7K 
[TXT]linux-2.6.22-060-cle..>2007-06-28 03:10 7.3K 
[TXT]linux-2.6.22-061-mak..>2007-06-28 03:10 7.6K 
[TXT]linux-2.6.22-062-mak..>2007-06-28 03:10 6.0K 
[TXT]linux-2.6.22-063-con..>2007-06-28 03:10 8.0K 
[TXT]linux-2.6.22-064-con..>2007-06-28 03:10 5.4K 
[TXT]linux-2.6.22-065-all..>2007-06-28 03:10 1.7K 
[TXT]linux-2.6.22-066-rem..>2007-06-28 03:10 10K 
[TXT]linux-2.6.22-067-don..>2007-06-28 03:10 2.8K 
[TXT]linux-2.6.22-068-ens..>2007-06-28 03:10 3.9K 
[TXT]linux-2.6.22-069-sup..>2007-06-28 03:10 2.9K 
[TXT]linux-2.6.22-NFS_ALL..>2007-06-28 15:00 162K 
[   ]series 2007-06-28 03:10 3.2K 

Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 mod_perl/2.0.11 Perl/v5.16.3 Server at linux-nfs.org Port 80