Patchwork [BUG:1499] nfsrpc: Set THIS before vector sizing upcall

login
register
Submitter Shehjar Tikoo
Date 2010-09-06 11:32:23
Message ID <1283772743-4875-1-git-send-email-shehjart@gluster.com>
Download mbox | patch
Permalink /patch/4582/
State Accepted
Headers show

Comments

Shehjar Tikoo - 2010-09-06 11:32:23
From: Shehjar Tikoo <shehjart@gluster.com>


Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
---
 xlators/nfs/lib/src/rpcsvc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c
index 4698e2e..7eaeb92 100644
--- a/xlators/nfs/lib/src/rpcsvc.c
+++ b/xlators/nfs/lib/src/rpcsvc.c
@@ -2000,6 +2000,7 @@  nfs_rpcsvc_handle_vectored_prep_rpc_call (rpcsvc_conn_t *conn)
         }
 
         nfs_rpcsvc_conn_ref (conn);
+        THIS = nfs_rpcsvc_request_actorxl (req);
         ret = actor->vector_sizer (req, &remfrag, &newbuf);
         nfs_rpcsvc_conn_unref (conn);
 
@@ -2142,6 +2143,7 @@  nfs_rpcsvc_handle_vectored_rpc_call (rpcsvc_conn_t *conn)
 
         req->msg.iov_len = (unsigned long)((long)rs->fragcurrent - (long)req->msg.iov_base);
         nfs_rpcsvc_conn_ref (conn);
+        THIS = nfs_rpcsvc_request_actorxl (req);
         ret = actor->vector_sizer (req, &remfrag, &newbuf);
         nfs_rpcsvc_conn_unref (conn);
         if (ret == RPCSVC_ACTOR_ERROR) {