diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-09-06 06:02:23 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-06 09:37:44 -0700 |
commit | f0e6630fb33ba69c85e267848290389d60f25d21 (patch) | |
tree | 3bbddac2c624a7a74b40e737f1d6ed72775baa5e /xlators/nfs/lib/src | |
parent | 100bec738c83afab77b7b4654397335b1b9cefdf (diff) |
nfsrpc: Set THIS before vector sizing upcall
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1499 (GNFS from mainline Glusterfs-3.1-qa13 crashes while initiating SFS2008)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1499
Diffstat (limited to 'xlators/nfs/lib/src')
-rw-r--r-- | xlators/nfs/lib/src/rpcsvc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c index 4698e2e8d11..7eaeb9233b7 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) { |