[pnfs] [PATCH 01/17] [SQUASHME] nfs41: resurrect code to initialize nfs_client cl_boot_time, cl_state
Benny Halevy
bhalevy at panasas.com
Tue Jun 3 13:38:31 EDT 2008
Fixes "nfs41: sessions client infrastructure" which moved this initialization
code to nfs4_init_client, but only for minorversion 1. This still needs to
be done for minorversion 0 as usual.
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfs/client.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 0c48558..d076677 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -145,6 +145,8 @@ static struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_
spin_lock_init(&clp->cl_lock);
INIT_DELAYED_WORK(&clp->cl_renewd, nfs4_renew_state);
rpc_init_wait_queue(&clp->cl_rpcwaitq, "NFS client");
+ clp->cl_boot_time = CURRENT_TIME;
+ clp->cl_state = 1 << NFS4CLNT_LEASE_EXPIRED;
#endif
return clp;
--
1.5.3.3
More information about the pNFS
mailing list