Please pull NFS client bugfixes
Subsystems (3)
Hi Linus,
Please pull from the "bugfixes" branch of the repository at
git pull git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git bugfixes
This will update the following files through the appended changesets.
Cheers,
Trond
----
fs/nfs/nfs4proc.c | 9 +++------ fs/nfs/nfsroot.c | 2 +- net/sunrpc/xprtrdma/verbs.c | 3 ++- 3 files changed, 6 insertions(+), 8 deletions(-)
commit 95baa25c7321eb8613246acbf61b97911cc748d3
Author: Trond Myklebust <[email protected]> Date: Tue May 26 14:51:00 2009 -0400
NFSv4: Fix the case where NFSv4 renewal fails
If the asynchronous lease renewal fails (usually due to a soft timeout), then we _must_ schedule state recovery in order to ensure that we don't lose the lease unnecessarily or, if the lease is already lost, that we recover the locking state promptly...
commit d0367a508af9cf97beb202935bb9ad8883d30cd1
Author: Sam Ravnborg <[email protected]> Date: Tue May 26 14:51:00 2009 -0400
nfs: fix build error in nfsroot with initconst
fix build error with latest kbuild adjustments to initconst.
The commit a447c0932445f92ce6f4c1bd020f62c5097a7842 ("vfs: Use const for kernel parser table") changed:
static match_table_t __initdata tokens = {
to
static match_table_t __initconst tokens = {
But the missing const causes powerpc to fail with latest updates to __initconst like this:
fs/nfs/nfsroot.c:400: error: __setup_str_nfs_root_setup causes a section type conflict fs/nfs/nfsroot.c:400: error: __setup_str_nfs_root_setup causes a section type conflict
The bug is only present with kbuild-next.
Following patch has been build tested.
commit 68743082b560067e3e93eab8b2568f238e486865
Author: Vu Pham <[email protected]> Date: Tue May 26 14:51:00 2009 -0400
XPRTRDMA: fix client rpcrdma FRMR registration on mlx4 devices
mlx4/connectX FRMR requires local write enable together with remote rdma write enable. This fixes NFS/RDMA operation over the ConnectX Infiniband HCA in the default memreg mode.
fs/nfs/nfs4proc.c +3 -6
@@ -2594,12 +2594,9 @@ static void nfs4_renew_done(struct rpc_task *task, void *data)unsigned long timestamp = (unsigned long )data;if (task->tk_status <0 ) { -switch (task->tk_status) { -case -NFS4ERR_STALE_CLIENTID : -case -NFS4ERR_EXPIRED : -case -NFS4ERR_CB_PATH_DOWN : -nfs4_schedule_state_recovery (clp); - } +/* Unless we're shutting down, schedule state recovery! */ +if (test_bit (NFS_CS_RENEWD , &clp->cl_res_state) !=0 ) +nfs4_schedule_state_recovery (clp);return ; }spin_lock (&clp->cl_lock);
fs/nfs/nfsroot.c +1 -1
@@ -129,7 +129,7 @@ enum {Opt_err }; -static match_table_t __initconst tokens = { +static const match_table_t tokens__initconst = { {Opt_port,"port=%u" }, {Opt_rsize,"rsize=%u" }, {Opt_wsize,"wsize=%u" },
net/sunrpc/xprtrdma/verbs.c +2 -1
@@ -1495,7 +1495,8 @@ rpcrdma_register_frmr_external(struct rpcrdma_mr_seg *seg, frmr_wr.wr.fast_reg.page_shift =PAGE_SHIFT ; frmr_wr.wr.fast_reg.length = i <<PAGE_SHIFT ; frmr_wr.wr.fast_reg.access_flags = (writing ? -IB_ACCESS_REMOTE_WRITE :IB_ACCESS_REMOTE_READ ); +IB_ACCESS_REMOTE_WRITE |IB_ACCESS_LOCAL_WRITE : +IB_ACCESS_REMOTE_READ ); frmr_wr.wr.fast_reg.rkey = seg1->mr_chunk.rl_mw->r.frmr.fr_mr->rkey;DECR_CQCOUNT (&r_xprt->rx_ep);
Signature · 6 lines
Trond Myklebust Linux NFS client maintainer NetApp [email protected] www.netapp.com