NFS client patches for Linux 2.6.23-rc8

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

linux-2.6.23-001-fix_lockd_circular_dependency.dif:

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

Date: Wed, 19 Sep 2007 11:54:54 -0400

NLM: Fix a circular lock dependency in lockd

The problem is that the garbage collector for the 'host' structures nlm_gc_hosts(), holds nlm_host_mutex while calling down to nlmsvc_mark_resources, which, eventually takes the file->f_mutex.

We cannot therefore call nlmsvc_lookup_host() from within nlmsvc_create_block, since the caller will already hold file->f_mutex, so the attempt to grab nlm_host_mutex may deadlock.

Fix the problem by calling nlmsvc_lookup_host() outside the file->f_mutex.

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

linux-2.6.23-002-fix_nfs4_namelen.dif:

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

Date: Sun, 9 Sep 2007 00:10:51 +0200

NFS: Fix an Oops in encode_lookup()

It doesn't look as if the NFS file name limit is being initialised correctly in the struct nfs_server. Make sure that we limit whatever is being set in nfs_probe_fsinfo() and nfs_init_server().

Also ensure that readdirplus and nfs4_path_walk respect our file name limits.

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

linux-2.6.23-003-add_nfs_page_mkwrite.dif:

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

Date: Sun, 22 Jul 2007 17:09:05 -0400

NFS: Add the helper nfs_vm_page_mkwrite

This is needed in order to set up a proper nfs_page request for mmapped files.

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

linux-2.6.23-004-clean_up_write.dif:

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

Date: Sun, 22 Jul 2007 17:09:05 -0400

NFS: Clean up write code...

The addition of nfs_page_mkwrite means that We should no longer need to create requests inside nfs_writepage()

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

linux-2.6.23-005-cleanup_nfs_writepages.dif:

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

Date: Sun, 22 Jul 2007 19:27:32 -0400

NFS: Clean up nfs_writepages()

Just call write_cache_pages directly instead of hacking the writeback control structure in order to find out if we were called from writepages() or directly from the VM.

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

linux-2.6.23-006-remove_wbc_fs_private.dif:

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

Date: Sun, 22 Jul 2007 19:27:46 -0400

VFS: Remove writeback_control->fs_private

The only user of this field was NFS.

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

linux-2.6.23-007-add_nfs_wb_nocommit.dif:

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

Date: Fri, 20 Jul 2007 13:13:28 -0400

NFS: Clean up NFS writeback flush code

The only user of nfs_sync_mapping_range() is nfs_getattr(), which uses it to flush out the entire inode without sending a commit. We therefore replace nfs_sync_mapping_range with a more appropriate helper.

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

linux-2.6.23-008-optimise_writeback.dif:

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

Date: Wed, 25 Jul 2007 14:09:54 -0400

NFS: Writeback optimisation

Schedule writes using WB_SYNC_NONE first, then come back for a second pass using WB_SYNC_ALL.

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

linux-2.6.23-009-osync_on_error.dif:

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

Date: Wed, 25 Jul 2007 14:09:54 -0400

NFS: Fall back to synchronous writes when a background write errors...

This helps prevent huge queues of background writes from building up whenever the server runs out of disk or quota space, or if someone changes the file access modes behind our backs.

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

linux-2.6.23-010-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.23-011-nfs_64_bit_ino_support.dif:

From: Peter Staubach <staubach@redhat.com>

Date: Fri, 03 Aug 2007 15:07:10 -0400

64 bit ino support for NFS client

Hi.

Attached is a patch to modify the NFS client code to support 64 bit ino's, as appropriate for the system and the NFS protocol version.

The code basically just expand the NFS interfaces for routines which handle ino's from using ino_t to u64 and then uses the fileid in the nfs_inode instead of i_ino in the inode. The code paths that were updated are in the getattr method and the readdir methods.

This should be no real change on 64 bit platforms. Since the ino_t is an unsigned long, it would already be 64 bits wide.

Thanx...

ps

Signed-off-by: Peter Staubach <staubach@redhat.com>

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

linux-2.6.23-012-nfs_attribute_timeout_handling.dif:

From: Fabio Olive Leite <fleite@redhat.com>

Date: Thu, 26 Jul 2007 22:59:00 -0300

Re: [NFS] [PATCH] Attribute timeout handling and wrapping u32 jiffies

I would like to discuss the idea that the current checks for attribute timeout using time_after are inadequate for 32bit architectures, since time_after works correctly only when the two timestamps being compared are within 2^31 jiffies of each other. The signed overflow caused by comparing values more than 2^31 jiffies apart will flip the result, causing incorrect assumptions of validity.

2^31 jiffies is a fairly large period of time (~25 days) when compared to the lifetime of most kernel data structures, but for long lived NFS mounts that can sit idle for months (think that for some reason autofs cannot be used), it is easy to compare inode attribute timestamps with very disparate or even bogus values (as in when jiffies have wrapped many times, where the comparison doesn't even make sense).

Currently the code tests for attribute timeout by simply adding the desired amount of jiffies to the stored timestamp and comparing that with the current timestamp of obtained attribute data with time_after. This is incorrect, as it returns true for the desired timeout period and another full 2^31 range of jiffies.

In testing with artificial jumps (several small jumps, not one big crank) of the jiffies I was able to reproduce a problem found in a server with very long lived NFS mounts, where attributes would not be refreshed even after touching files and directories in the server:

Initial uptime: 03:42:01 up 6 min, 0 users, load average: 0.01, 0.12, 0.07

NFS volume is mounted and time is advanced: 03:38:09 up 25 days, 2 min, 0 users, load average: 1.22, 1.05, 1.08

# ls -l /local/A/foo/bar /nfs/A/foo/bar -rw-r--r-- 1 root root 0 Dec 17 03:38 /local/A/foo/bar -rw-r--r-- 1 root root 0 Nov 22 00:36 /nfs/A/foo/bar

# touch /local/A/foo/bar

# ls -l /local/A/foo/bar /nfs/A/foo/bar -rw-r--r-- 1 root root 0 Dec 17 03:47 /local/A/foo/bar -rw-r--r-- 1 root root 0 Nov 22 00:36 /nfs/A/foo/bar

We can see the local mtime is updated, but the NFS mount still shows the old value. The patch below makes it work:

Initial setup... 07:11:02 up 25 days, 1 min, 0 users, load average: 0.15, 0.03, 0.04

# ls -l /local/A/foo/bar /nfs/A/foo/bar -rw-r--r-- 1 root root 0 Jan 11 07:11 /local/A/foo/bar -rw-r--r-- 1 root root 0 Jan 11 07:11 /nfs/A/foo/bar

# touch /local/A/foo/bar

# ls -l /local/A/foo/bar /nfs/A/foo/bar -rw-r--r-- 1 root root 0 Jan 11 07:14 /local/A/foo/bar -rw-r--r-- 1 root root 0 Jan 11 07:14 /nfs/A/foo/bar

Signed-off-by: Fabio Olive Leite <fleite@redhat.com>

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

linux-2.6.23-013-nfs_tiny_makefile_cleanup.dif:

From: Christoph Hellwig <hch@lst.de>

Date: Fri, 3 Aug 2007 16:20:32 +0200

[NFS] [PATCH] nfs: tiny makefile cleanup

no need to set up foo-objs these days.

Signed-off-by: Christoph Hellwig <hch@lst.de>

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

linux-2.6.23-014-show_addr_as_ipaddr.dif:

From: Jeff Layton <jlayton@redhat.com>

Date: Mon, 30 Jul 2007 08:47:38 -0400

[NFS] [PATCH] NFS: show addr=ipaddr in /proc/mounts rather than

A minor thing, but useful when working with a server with multiple addrs. This looks like it might also be necessary if Miklos' effort to eliminate /etc/mtab ever comes to fruition.

When displaying mount options in /proc/mounts, the kernel prints "addr=hostname". This info is redundant since we already have the hostname displayed as part of the "device" section of the mount. This patch changes it to display the IP address to which the socket is connected.

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

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

linux-2.6.23-015-fix_a_signed_v_unsigned_comparison_in_rpcbind_s_xdr_routines.dif:

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

Date: Mon, 06 Aug 2007 11:56:31 -0400

SUNRPC: Fix a signed v. unsigned comparison in rpcbind's XDR routines

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

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

linux-2.6.23-016-fix_a_signed_v_unsigned_comparison_in_net_sunrpc_xprtsock_c.dif:

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

Date: Mon, 06 Aug 2007 11:56:42 -0400

SUNRPC: Fix a signed v. unsigned comparison in net/sunrpc/xprtsock.c

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

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

linux-2.6.23-017-use_standard_macros_for_printing_ip_addresses.dif:

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

Date: Mon, 06 Aug 2007 11:56:52 -0400

SUNRPC: Use standard macros for printing IP addresses

include/linux/kernel.h gives us some nice macros for formatting IP addresses. Use them.

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

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

linux-2.6.23-018-free_address_buffers_in_a_loop.dif:

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

Date: Mon, 06 Aug 2007 11:56:57 -0400

SUNRPC: Free address buffers in a loop

Use more generic logic to free buffers holding formatted addresses. This makes it less likely a bug will be introduced when adding additional buffer types in xs_format_peer_address().

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

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

linux-2.6.23-019-add_hex_formatted_address_support_to_rpc_peeraddr2str.dif:

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

Date: Mon, 06 Aug 2007 11:57:02 -0400

SUNRPC: Add hex-formatted address support to rpc_peeraddr2str()

Add support for the NFS client's need to export volume information with IP addresses formatted in hex instead of decimal.

This isn't used yet, but subsequent patches (not in this series) will change the NFS client to use this functionality.

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

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

linux-2.6.23-020-rename_xs_format_peer_addresses.dif:

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

Date: Mon, 06 Aug 2007 11:57:07 -0400

SUNRPC: Rename xs_format_peer_addresses

Prepare to add an IPv6 version of xs_format_peer_addresses by renaming it to xs_format_ipv4_peer_addresses.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>

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

linux-2.6.23-021-add_a_function_to_format_ipv6_addresses.dif:

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

Date: Mon, 06 Aug 2007 11:57:12 -0400

SUNRPC: add a function to format IPv6 addresses

Clone xs_format_ipv4_peer_addresses into an IPv6 version.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>

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

linux-2.6.23-022-add_support_for_ipv6_to_the_kernel_s_rpcbind_client.dif:

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

Date: Mon, 06 Aug 2007 11:57:18 -0400

SUNRPC: add support for IPv6 to the kernel's rpcbind client

Prepare for adding IPv6 support to the RPC client by adding IPv6 capabilities to rpcbind. Note that this is support on the query side only; registering IPv6 addresses with the local portmapper will come later.

Note we have to take care not to fall back to using version 2 of the rpcbind protocol if we're dealing with IPv6 address. Version 2 doesn't support IPv6 at all.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>

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

linux-2.6.23-023-introduce_support_for_setting_the_port_number_in_ipv6_addresses.dif:

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

Date: Mon, 06 Aug 2007 11:57:23 -0400

SUNRPC: Introduce support for setting the port number in IPv6 addresses

We could clone xs_set_port, but this is easier overall.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>

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

linux-2.6.23-024-rename_xs_bind_to_prepare_for_ipv6_specific_bind_method.dif:

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

Date: Mon, 06 Aug 2007 11:57:28 -0400

SUNRPC: Rename xs_bind() to prepare for IPv6-specific bind method

Prepare for introduction of IPv6-specific socket bind function.

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

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

linux-2.6.23-025-create_an_ipv6_savvy_mechanism_for_binding_to_a_reserved_port.dif:

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

Date: Mon, 06 Aug 2007 11:57:33 -0400

SUNRPC: create an IPv6-savvy mechanism for binding to a reserved port

Clone xs_bindresvport into two functions, one that can handle IPv4 addresses, and one that can handle IPv6 addresses.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>

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

linux-2.6.23-026-refactor_a_part_of_socket_connect_logic_into_a_helper_function.dif:

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

Date: Mon, 06 Aug 2007 11:57:38 -0400

SUNRPC: Refactor a part of socket connect logic into a helper function

Finishing a socket connect is the same for IPv4 and IPv6, so split it out into a helper.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>

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

linux-2.6.23-027-rename_ipv4_connect_workers.dif:

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

Date: Mon, 06 Aug 2007 11:57:43 -0400

SUNRPC: Rename IPv4 connect workers

Prepare for introduction of IPv6 versions of same.

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

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

linux-2.6.23-028-create_connect_workers_for_ipv6.dif:

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

Date: Mon, 06 Aug 2007 11:57:48 -0400

SUNRPC: create connect workers for IPv6

Clone separate connect worker functions for connecting AF_INET6 sockets.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>

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

linux-2.6.23-029-add_ipv6_address_support_to_net_sunrpc_xprtsock_c.dif:

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

Date: Mon, 06 Aug 2007 11:57:53 -0400

SUNRPC: Add IPv6 address support to net/sunrpc/xprtsock.c

Finalize support for setting up RPC client transports to remote RPC services addressed via IPv6.

Based on work done by Gilles Quillard at Bull Open Source.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>

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

linux-2.6.23-030-add_a_helper_for_extracting_the_address_using_the_correct_type.dif:

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

Date: Mon, 06 Aug 2007 11:57:58 -0400

SUNRPC: Add a helper for extracting the address using the correct type

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

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

linux-2.6.23-031-split_xs_reclassify_socket_into_an_ipv4_and_ipv6_version.dif:

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

Date: Mon, 06 Aug 2007 11:58:04 -0400

SUNRPC: Split xs_reclassify_socket into an IPv4 and IPv6 version

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

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

linux-2.6.23-032-add_support_for_formatted_universal_addresses.dif:

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

Date: Thu, 16 Aug 2007 16:03:26 -0400

SUNRPC: Add support for formatted universal addresses

"Universal addresses" are a string representation of an IP address and port. They are described fully in RFC 3530, section 2.2. Add support for generating them in the RPC client's socket transport module.

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

linux-2.6.23-033-fix_generation_of_universal_addresses_for_getversaddr.dif:

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

Date: Thu, 16 Aug 2007 16:03:31 -0400

SUNRPC: Fix generation of universal addresses for

Fix some problems with rpcbind v3 and v4 queries from the in-kernel rpcbind client:

1. The r_addr argument must be a full universal address, not just an IP address, and

2. The universal address in r_addr is the address of the remote rpcbind server, not the RPC service being requested

This addresses bugzilla.kernel.org report 8891 for 2.6.23-rc and greater.

In addition, if the rpcbind client is unable to start the rpcbind request, make sure not to leak the xprt.

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

linux-2.6.23-034-only_one_dprintk_is_needed_during_client_creation.dif:

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

Date: Tue, 11 Sep 2007 18:00:03 -0400

SUNRPC: Only one dprintk is needed during client creation

Remove one of two identical dprintk's that occur when an RPC client is created.

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

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

linux-2.6.23-035-fix_a_signed_v_unsigned_comparison_nit_in_rpc_bind_new_program.dif:

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

Date: Tue, 11 Sep 2007 18:00:09 -0400

SUNRPC: fix a signed v. unsigned comparison nit in rpc_bind_new_program

/home/cel/linux/net/sunrpc/clnt.c: In function ‘rpc_bind_new_program’: /home/cel/linux/net/sunrpc/clnt.c:445: warning: comparison between signed and unsigned

RPC version numbers are u32, not int.

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

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

linux-2.6.23-036-use_correct_argument_type_in_memcpy.dif:

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

Date: Tue, 11 Sep 2007 18:00:15 -0400

SUNRPC: Use correct argument type in memcpy()

Noticed by Tom Talpey <tmt@netapp.com>:

OBTW, there's a nit on that memcpy, too. The r_addr is an array, so

memcpy(&map->r_addr

is passing the address of the array as a char **. It's the same as map->r_addr, but technically the wrong type.

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

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

linux-2.6.23-037-make_sure_server_name_is_reasonable_before_trying_to_print_it.dif:

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

Date: Tue, 11 Sep 2007 18:00:20 -0400

SUNRPC: Make sure server name is reasonable before trying to print it

Check the length of the passed-in server name before trying to print it in the log.

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

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

linux-2.6.23-038-clean_up_in_rpc_show_tasks.dif:

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

Date: Tue, 11 Sep 2007 18:00:25 -0400

SUNRPC: Clean up in rpc_show_tasks

/home/cel/linux/net/sunrpc/clnt.c: In function ‘rpc_show_tasks’: /home/cel/linux/net/sunrpc/clnt.c:1538: warning: signed and unsigned type in conditional expression

This points out another case where a conditional expression returns a signed value in one arm and an unsigned value in the other.

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

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

linux-2.6.23-039-make_rpcb_decode_getaddr_more_picky_about_universal_addresses.dif:

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

Date: Tue, 11 Sep 2007 18:00:31 -0400

SUNRPC: Make rpcb_decode_getaddr more picky about universal addresses

Add better sanity checking of server replies to the GETVERSADDR reply decoder. Change the error return code: EIO is what other XDR decoding routines return if there is a failure while decoding.

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

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

linux-2.6.23-040-retry_bad_rpcbind_replies.dif:

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

Date: Tue, 11 Sep 2007 18:00:36 -0400

SUNRPC: Retry bad rpcbind replies

When a server returns a bad rpcbind reply, make rpcbind client recovery logic retry with an older protocol version. Older versions are more likely to work correctly.

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

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

linux-2.6.23-041-add_a_new_error_code_for_retry_waiting_for_another_binder.dif:

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

Date: Tue, 11 Sep 2007 18:00:41 -0400

SUNRPC: Add a new error code for retry waiting for another binder

Add new error code processing to the kernel's rpcbind client and to call_bind_status() to distinguish two cases:

Case 1: the remote has replied that the program/version tuple is not registered (returns -EACCES)

Case 2: another process is already in the middle of binding on this transport (now returns -EAGAIN)

This change allows more specific retry processing for each of these two cases.

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

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

linux-2.6.23-042-split_another_new_rpcbind_retry_error_code_from_eacces.dif:

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

Date: Tue, 11 Sep 2007 18:00:47 -0400

SUNRPC: Split another new rpcbind retry error code from EACCES

Add more new error code processing to the kernel's rpcbind client and to call_bind_status() to distinguish two cases:

Case 1: the remote has replied that the program/version tuple is not registered (returns EACCES)

Case 2: retry with a lesser rpcbind version (rpcb now returns EPFNOSUPPORT)

This change allows more specific error processing for each of these two cases. We now fail case 2 instead of retrying... it's a server configuration error not to support even rpcbind version 2. And don't expose this new error code to user land -- convert it to EIO before failing the RPC.

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

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

linux-2.6.23-043-rpc_bind_failures_should_be_permanent_for_null_requests.dif:

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

Date: Tue, 11 Sep 2007 18:00:52 -0400

SUNRPC: RPC bind failures should be permanent for NULL requests

The purpose of an RPC ping (a NULL request) is to determine whether the remote end is operating and supports the RPC program and version of the request.

If we do an RPC bind and the remote's rpcbind service says "this program or service isn't supported" then we have our answer already, and we should give up immediately.

This is good for the kernel mount client, as it will cause the request to fail, and then allow an immediate retry with different options.

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

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

linux-2.6.23-044-kernel_mount_client_should_use_async_bind.dif:

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

Date: Tue, 11 Sep 2007 18:00:58 -0400

NFS: Kernel mount client should use async bind

Simplify the in-kernel mount client by using autobind instead of an explicit call to rpc_getport_sync.

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

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

linux-2.6.23-045-init_default_port_in_kernel_mount.dif:

From: James Lentini <jlentini@netapp.com>

Date: Mon, 24 Sep 2007 17:32:49 -0400 (EDT)

[NFS] [PATCH] NFS: initialize default port in kernel mount client

If no mount server port number is specified, the previous change to the kernel mount client inadvertently allows the NFS server's port number to be the used as the mount server's port number. If the user specifies an NFS server port (-o port=x), the mount will fail.

The fix below sets the mount server's port to 0 if no mount server port is specified by the user.

Signed-off-by: James Lentini <jlentini@netapp.com>

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

linux-2.6.23-046-add_new_mountaddr_mount_option.dif:

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

Date: Tue, 11 Sep 2007 18:01:04 -0400

NFS: Add new 'mountaddr=' mount option

I got the 'mounthost=' option wrong - it shouldn't look for an address value, but rather a hostname value. However, the in-kernel mount client and NFS client cannot resolve a hostname by themselves; they rely on user-land to pass in the resolved address.

Create a new mount option that does take an address so that the mount program's address can be passed in. The mount hostname is now ignored by the kernel.

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

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

linux-2.6.23-047-convert_printk_s_to_dprintk_s_in_fs_nfs_nfs_xdr_c.dif:

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

Date: Tue, 11 Sep 2007 18:01:10 -0400

NFS: Convert printk's to dprintk's in fs/nfs/nfs?xdr.c

Due to recent edict to replace or remove printk's that can be triggered en masse by remote misbehavior. Left a few that only occur just before a BUG.

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

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

linux-2.6.23-048-convert_printk_s_to_dprintk_s_in_lockd_xdr_routines.dif:

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

Date: Tue, 11 Sep 2007 18:01:15 -0400

LOCKD: Convert printk's to dprintk's in lockd XDR routines

Due to recent edict to remove or replace printk's that might flood the system log.

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

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

linux-2.6.23-049-convert_printk_s_to_dprintk_s_in_nfsd_s_nfs4xdr.dif:

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

Date: Tue, 11 Sep 2007 18:01:20 -0400

NFSD: Convert printk's to dprintk's in NFSD's nfs4xdr

Due to recent edict to remove or replace printk's that can flood the system log.

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

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

linux-2.6.23-050-move_per_transport_rpcbind_netid_s.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:42:38 -0400

SUNRPC: move per-transport rpcbind netid's

Move the TCP/UDP rpcbind netid's from the rpcbind client to a global header.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-051-export_per_transport_rpcbind_netid_s.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:43:05 -0400

SUNRPC: export per-transport rpcbind netid's

The rpcbind (v3+) netid is provided by each RPC client transport. This fixes an omission in IPv6 rpcbind client support, and enables future extension.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-052-move_nfs_parsed_mount_data_structure_definition.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:43:29 -0400

NFS: move nfs_parsed_mount_data structure definition

In preparation for rearranging the nfs mount argument passing, make the nfs_parsed_mount_data struct visible across nfs kernel files.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

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

linux-2.6.23-053-use_in_kernel_mount_argument_structure_for_nfsv_23_mounts.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:43:56 -0400

NFS: use in-kernel mount argument structure for nfsv[23] mounts

The user-visible nfs_mount_data does not contain sufficient data to describe new mount options, and also is now a legacy structure. Replace it with the internal nfs_parsed_mount_data for nfsv[23] in-kernel use.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

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

linux-2.6.23-054-use_in_kernel_mount_argument_structure_for_nfsv4_mounts.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:44:33 -0400

NFS: use in-kernel mount argument structure for nfsv4 mounts

The user-visible nfs4_mount_data does not contain sufficient data to describe new mount options, and also is now a legacy structure. Replace it with the internal nfs_parsed_mount_data for nfsv4 in-kernel use.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

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

linux-2.6.23-055-fix_bug_in_nfs4_validate_mount_data.dif:

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

Date: Thu, 20 Sep 2007 20:23:51 -0400

NFSv4: Fix a bug in nfs4_validate_mount_data()

The previous patch introduced a bug when copying the server address.

Also clarify a copy into the auth_flavours array: currently the two size calculations are equivalent, but we may decide to change the size of auth_flavors[] at some point.

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

linux-2.6.23-056-mark_bulk_read_write_data_in_xdrbuf.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:44:58 -0400

SUNRPC: mark bulk read/write data in xdrbuf

Adds a flag word to the xdrbuf struct which indicates any bulk disposition of the data. This enables RPC transport providers to marshal it efficiently/appropriately, and may enable other optimizations.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-057-add_export_symbol_gpl_for_generic_transport_functions.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:45:36 -0400

SUNRPC: add EXPORT_SYMBOL_GPL for generic transport functions

SUNRPC: add EXPORT_SYMBOL_GPL for generic transport functions

As a preface to allowing arbitrary transport modules to be loaded dynamically, add EXPORT_SYMBOL_GPL for all generic transport functions that a transport implementation might want to use.

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

Acked-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-058-provide_a_new_api_for_registering_transport_implementations.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:46:00 -0400

SUNRPC: Provide a new API for registering transport implementations

To allow transport capabilities to be loaded dynamically, provide an API for registering and unregistering the transports with the RPC client. Eventually xprt_create_transport() will be changed to search the list of registered transports when initializing a fresh transport.

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

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-059-finish_api_to_load_rpc_transport_implementations_dynamically.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:46:39 -0400

SUNRPC: Finish API to load RPC transport implementations dynamically

Allow RPC client transport implementations to be loaded as needed, or as they become available from distributors or third-party vendors.

Note that we leave the IP sockets implementation in sunrpc.o permanently, as IP functionality is always available in any kernel that runs NFS.

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

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-060-rename_the_rpc_xprtsock_create_structure.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:47:07 -0400

SUNRPC: rename the rpc_xprtsock_create structure

To prepare for including non-sockets-based RPC transports, change the overly suggestive name of the transport creation arguments struct.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-061-rearrange_rpc_sockets_definitions.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:47:31 -0400

SUNRPC: rearrange RPC sockets definitions

To prepare for including non-sockets-based RPC transports, move the sockets-dependent definitions into their own file.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-062-nfs_sunrpc_support_transport_protocol_naming.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:47:57 -0400

NFS/SUNRPC: support transport protocol naming

To prepare for including non-sockets-based RPC transports, select RPC transports by an identifier (to be used in following patches).

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-063-nfs_sunrpc_use_transport_protocol_naming.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:48:23 -0400

NFS/SUNRPC: use transport protocol naming

Instead of an { address family, raw IP protocol number }-tuple, use the newly-defined RPC identifier when creating clients in the upper layers.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-064-nfs_print_accurate_transport_protocol.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:48:47 -0400

NFS - print accurate transport protocol

Use the per-transport strings to display the transport protocol accurately.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-065-kconfig_and_header_file_with_rpcrdma_protocol_definitions.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:49:15 -0400

RPCRDMA: Kconfig and header file with rpcrdma protocol definitions

This file implements the configuration target, protocol template and constants for the rpcrdma transport framing, for use by the xprtrdma rpc transport implementation.

Signed-off-by: Tom Talpey <talpey@netapp.com>

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

linux-2.6.23-066-support_rdma_mounts.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:49:41 -0400

NFS: support RDMA mounts

Adds hooks to the string-based NFS mount to support an "rdma" protocol option.

Signed-off-by: Tom Talpey <tmt@netapp.com>

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

linux-2.6.23-067-rpc_rdma_transport_switch.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:50:12 -0400

RPCRDMA: rpc rdma transport switch

This implements the configuration and building of the core transport switch implementation of the rpcrdma transport. Stubs are provided for the rpcrdma protocol handling, and the infiniband/iwarp verbs interface. These are provided in following patches.

Signed-off-by: Tom Talpey <talpey@netapp.com>

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

linux-2.6.23-068-rpc_rdma_protocol_implementation.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:50:42 -0400

RPCRDMA: rpc rdma protocol implementation

This implements the marshaling and unmarshaling of the rpcrdma transport headers. Connection management is also addressed.

Signed-off-by: Tom Talpey <talpey@netapp.com>

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

linux-2.6.23-069-rpc_rdma_verbs_interface_implementation.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Mon, 10 Sep 2007 13:51:18 -0400

RPCRDMA: rpc rdma verbs interface implementation

This implements the interface from rpcrdma to the RDMA verbs interface supported by Infniband and iWARP.

Signed-off-by: Tom Talpey <talpey@netapp.com>

Signed-off-by: James Lentini <jlentini@netapp.com>

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

linux-2.6.23-070-add_rdma_dependency_to_sunrpc_xprt_rdma.dif:

From: \"Talpey, Thomas\" <Thomas.Talpey@netapp.com>

Date: Thu, 20 Sep 2007 17:37:58 -0400

SUNRPC: Add RDMA dependency to SUNRPC_XPRT_RDMA

Add a dependency on RDMA before enabling SUNRPC_XPRT_RDMA Yes, "INFINIBAND" also turns on iWARP and other RDMA support.

Signed-off-by: Tom Talpey <talpey@netapp.com>

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

linux-2.6.23-071-verify_server_address_before_invoking_mount_client.dif:

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

Date: Mon, 24 Sep 2007 15:39:50 -0400

NFS: Verify server address before invoking in-kernel mount client

Re-order mount option sanity checking slightly to ensure we have a valid server address *before* trying to do the mountd RPC call.

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

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

linux-2.6.23-072-show_nointr_mount_option.dif:

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

Date: Mon, 24 Sep 2007 15:39:55 -0400

NFS: Show "nointr" mount option

The default "intr" setting is different for NFS and NFSv4. To avoid confusion on this issue, don't hide the "nointr" option in /proc/mounts.

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

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

linux-2.6.23-073-fix_bytes_per_op_accounting_for_udp.dif:

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

Date: Mon, 24 Sep 2007 15:40:00 -0400

SUNRPC: Fix bytes-per-op accounting for RPC over UDP

NFS performance metrics reported zero bytes sent per op when mounting with UDP. The UDP socket transport wasn't properly counting the number of bytes sent.

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

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

linux-2.6.23-074-dont_call_nfs_renew_times_in_nfs_dentry_iput.dif:

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

Date: Mon, 24 Sep 2007 15:40:06 -0400

NFS: Don't call nfs_renew_times() in nfs_dentry_iput()

Negative dentries need to be reverified after an asynchronous unlink.

Quoth Trond:

"Unfortunately I don't think that we can avoid revalidating the resulting negative dentry since the UNLINK call is asynchronous, and so the new verifier on the directory will only be known a posteriori."

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

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

linux-2.6.23-075-eliminate_nfs_renew_times.dif:

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

Date: Mon, 24 Sep 2007 15:40:11 -0400

NFS: Eliminate nfs_renew_times()

The nfs_renew_times() function plants the current time in jiffies in dentry->d_time. But a call to nfs_renew_times() is always followed by another call that overwrites dentry->d_time. Get rid of the nfs_renew_times() calls.

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

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

linux-2.6.23-076-eliminate_nfs_refresh_verifier.dif:

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

Date: Mon, 24 Sep 2007 15:40:16 -0400

NFS: Eliminate nfs_refresh_verifier()

nfs_set_verifier() and nfs_refresh_verifier() do exactly the same thing, so replace one with the other.

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

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

linux-2.6.23-077-add_nfs_file_open_context.dif:

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

Date: Fri, 10 Aug 2007 17:44:28 -0400

NFS: Add a helper to extract the nfs_open_context from a struct file

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

linux-2.6.23-078-replace_open_coded_accesses_to_file_private_data.dif:

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

Date: Fri, 10 Aug 2007 17:44:32 -0400

NFS: Replace file->private_data with calls to nfs_file_open_context()

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

linux-2.6.23-079-simplify_nfs4_do_access.dif:

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

Date: Fri, 10 Aug 2007 17:45:10 -0400

NFSv4: Simplify _nfs4_do_access()

Currently, _nfs4_do_access() is just a copy of nfs_do_access() with added conversion of the open flags into an access mask. This patch merges the duplicate functionality.

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

linux-2.6.23-080-nfs4_make_access_return_attrs.dif:

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

Date: Fri, 10 Aug 2007 17:45:11 -0400

NFSv4: Make NFSv4 ACCESS calls return attributes too...

It doesn't really make sense to cache an access call without also revalidating the attributes.

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

linux-2.6.23-081-optimise_nfs_update_inode.dif:

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

Date: Wed, 15 Aug 2007 12:49:17 -0400

NFS: Fix over-conservative attribute invalidation in nfs_update_inode()

We should always be declaring the attribute cache as valid after having updated it.

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

linux-2.6.23-082-add_memory_barriers_to_revalidate_inode.dif:

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

Date: Wed, 15 Aug 2007 12:55:32 -0400

NFS: Add memory barriers to nfs_revalidate_inode() and friends

We need to ensure that all inode metadata reads complete before the call to nfs_revalidate_inode().

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

linux-2.6.23-083-post_op_update_inode_should_call_nfs_refresh_inode.dif:

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

Date: Wed, 15 Aug 2007 12:59:12 -0400

NFS: nfs_post_op_update_inode() should call nfs_refresh_inode()

Ensure that we don't clobber the results from a more recent getattr call...

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

linux-2.6.23-NFS_ALL.dif:

All of the above

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[TXT]linux-2.6.23-001-fix..>2007-09-19 16:46 3.4K 
[TXT]linux-2.6.23-002-fix..>2007-09-25 17:55 3.9K 
[TXT]linux-2.6.23-003-add..>2007-08-28 22:30 2.3K 
[TXT]linux-2.6.23-004-cle..>2007-08-28 22:30 6.0K 
[TXT]linux-2.6.23-005-cle..>2007-08-28 22:30 2.9K 
[TXT]linux-2.6.23-006-rem..>2007-07-27 14:24 777  
[TXT]linux-2.6.23-007-add..>2007-08-28 22:30 3.5K 
[TXT]linux-2.6.23-008-opt..>2007-08-28 22:30 1.8K 
[TXT]linux-2.6.23-009-osy..>2007-08-28 22:30 5.7K 
[TXT]linux-2.6.23-010-con..>2007-08-28 22:30 2.1K 
[TXT]linux-2.6.23-011-nfs..>2007-09-19 16:46 4.5K 
[TXT]linux-2.6.23-012-nfs..>2007-09-19 16:46 4.8K 
[TXT]linux-2.6.23-013-nfs..>2007-08-28 22:30 675  
[TXT]linux-2.6.23-014-sho..>2007-09-21 00:25 1.2K 
[TXT]linux-2.6.23-015-fix..>2007-08-28 22:30 876  
[TXT]linux-2.6.23-016-fix..>2007-08-28 22:30 848  
[TXT]linux-2.6.23-017-use..>2007-08-28 22:30 1.2K 
[TXT]linux-2.6.23-018-fre..>2007-08-28 22:30 1.6K 
[TXT]linux-2.6.23-019-add..>2007-08-28 22:30 1.7K 
[TXT]linux-2.6.23-020-ren..>2007-08-28 22:30 1.6K 
[TXT]linux-2.6.23-021-add..>2007-08-28 22:30 2.1K 
[TXT]linux-2.6.23-022-add..>2007-08-28 22:30 4.0K 
[TXT]linux-2.6.23-023-int..>2007-08-28 22:30 1.3K 
[TXT]linux-2.6.23-024-ren..>2007-08-28 22:30 1.7K 
[TXT]linux-2.6.23-025-cre..>2007-08-28 22:30 1.8K 
[TXT]linux-2.6.23-026-ref..>2007-08-28 22:30 5.5K 
[TXT]linux-2.6.23-027-ren..>2007-08-28 22:30 2.5K 
[TXT]linux-2.6.23-028-cre..>2007-08-28 22:30 3.7K 
[TXT]linux-2.6.23-029-add..>2007-09-25 17:55 4.4K 
[TXT]linux-2.6.23-030-add..>2007-09-25 17:55 2.5K 
[TXT]linux-2.6.23-031-spl..>2007-09-25 17:55 3.0K 
[TXT]linux-2.6.23-032-add..>2007-09-25 17:55 2.0K 
[TXT]linux-2.6.23-033-fix..>2007-08-28 22:30 2.5K 
[TXT]linux-2.6.23-034-onl..>2007-09-21 00:25 936  
[TXT]linux-2.6.23-035-fix..>2007-09-21 00:25 1.5K 
[TXT]linux-2.6.23-036-use..>2007-09-21 00:25 1.1K 
[TXT]linux-2.6.23-037-mak..>2007-09-21 00:25 1.3K 
[TXT]linux-2.6.23-038-cle..>2007-09-21 00:25 1.3K 
[TXT]linux-2.6.23-039-mak..>2007-09-21 00:25 1.8K 
[TXT]linux-2.6.23-040-ret..>2007-09-21 00:25 1.0K 
[TXT]linux-2.6.23-041-add..>2007-09-21 00:25 1.8K 
[TXT]linux-2.6.23-042-spl..>2007-09-21 00:25 2.2K 
[TXT]linux-2.6.23-043-rpc..>2007-09-21 00:25 1.3K 
[TXT]linux-2.6.23-044-ker..>2007-09-21 00:25 1.6K 
[TXT]linux-2.6.23-045-ini..>2007-09-25 17:55 1.2K 
[TXT]linux-2.6.23-046-add..>2007-09-25 17:55 1.8K 
[TXT]linux-2.6.23-047-con..>2007-09-21 00:25 13K 
[TXT]linux-2.6.23-048-con..>2007-09-21 00:25 2.0K 
[TXT]linux-2.6.23-049-con..>2007-09-21 00:25 2.6K 
[TXT]linux-2.6.23-050-mov..>2007-09-21 00:25 2.9K 
[TXT]linux-2.6.23-051-exp..>2007-09-25 17:55 2.4K 
[TXT]linux-2.6.23-052-mov..>2007-09-25 17:55 2.3K 
[TXT]linux-2.6.23-053-use..>2007-09-25 17:55 10K 
[TXT]linux-2.6.23-054-use..>2007-09-25 17:55 11K 
[TXT]linux-2.6.23-055-fix..>2007-09-25 17:55 1.4K 
[TXT]linux-2.6.23-056-mar..>2007-09-21 00:25 3.7K 
[TXT]linux-2.6.23-057-add..>2007-09-21 00:25 6.9K 
[TXT]linux-2.6.23-058-pro..>2007-09-21 00:25 4.3K 
[TXT]linux-2.6.23-059-fin..>2007-09-25 17:55 4.6K 
[TXT]linux-2.6.23-060-ren..>2007-09-25 17:55 4.1K 
[TXT]linux-2.6.23-061-rea..>2007-09-25 17:55 3.6K 
[TXT]linux-2.6.23-062-nfs..>2007-09-25 17:55 4.2K 
[TXT]linux-2.6.23-063-nfs..>2007-09-25 17:55 6.3K 
[TXT]linux-2.6.23-064-nfs..>2007-09-25 17:55 1.5K 
[TXT]linux-2.6.23-065-kco..>2007-09-21 00:25 8.7K 
[TXT]linux-2.6.23-066-sup..>2007-09-25 17:55 3.2K 
[TXT]linux-2.6.23-067-rpc..>2007-09-21 00:25 40K 
[TXT]linux-2.6.23-068-rpc..>2007-09-21 00:25 29K 
[TXT]linux-2.6.23-069-rpc..>2007-09-21 00:25 45K 
[TXT]linux-2.6.23-070-add..>2007-09-21 00:25 839  
[TXT]linux-2.6.23-071-ver..>2007-09-25 17:55 1.6K 
[TXT]linux-2.6.23-072-sho..>2007-09-25 17:55 942  
[TXT]linux-2.6.23-073-fix..>2007-09-25 17:55 905  
[TXT]linux-2.6.23-074-don..>2007-09-25 17:55 1.0K 
[TXT]linux-2.6.23-075-eli..>2007-09-25 17:55 3.8K 
[TXT]linux-2.6.23-076-eli..>2007-09-25 17:55 2.1K 
[TXT]linux-2.6.23-077-add..>2007-08-28 22:30 876  
[TXT]linux-2.6.23-078-rep..>2007-09-25 17:55 9.2K 
[TXT]linux-2.6.23-079-sim..>2007-09-25 17:55 5.7K 
[TXT]linux-2.6.23-080-nfs..>2007-09-21 00:25 4.6K 
[TXT]linux-2.6.23-081-opt..>2007-09-21 00:25 1.7K 
[TXT]linux-2.6.23-082-add..>2007-09-21 00:25 1.7K 
[TXT]linux-2.6.23-083-pos..>2007-09-21 00:25 1.0K 
[TXT]linux-2.6.23-NFS_ALL..>2007-09-25 17:56 269K 
[   ]series 2007-09-25 17:55 5.1K 

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