summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs3.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-04-12 21:57:35 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-13 10:01:49 -0700
commit4b754a77545fb7db030471fd4d84b8eee6008d7c (patch)
tree1e59d8e3ecda694f5947fa6049be43fb9364c9bf /xlators/nfs/server/src/nfs3.h
parent3d125eaed2fbf71c8c6dcddd45a9fa61ef4a4448 (diff)
nfs3: Use nfs3state in call_state to avoid getting from rpc request
This change avoids having the nfs translator depend on the sanity of the rpcsvc_request_t type after NFS reply has been sent. This was a problem because the request structure is guaranteed to be invalid after the reply for the request has been submitted by the RPC program. NFS3 handler was ignoring this behaviour and accessing the private in request after reply submission resulting in access to corrupted data. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 757 ([NFS-Alpha] Crash in nfs3_call_state_wipe) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=757
Diffstat (limited to 'xlators/nfs/server/src/nfs3.h')
-rw-r--r--xlators/nfs/server/src/nfs3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs3.h b/xlators/nfs/server/src/nfs3.h
index 1ec5a20a802..bb5fbb75033 100644
--- a/xlators/nfs/server/src/nfs3.h
+++ b/xlators/nfs/server/src/nfs3.h
@@ -148,6 +148,7 @@ struct nfs3_local {
xlator_t *vol;
nfs3_resume_fn_t resume_fn;
xlator_t *nfsx;
+ struct nfs3_state *nfs3state;
/* The list hook to attach this call state to the inode's queue till
* the opening of the fd on the inode completes.