diff options
author | Rajesh Amaravathi <rajesh@redhat.com> | 2012-09-27 17:59:23 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-11-30 00:01:53 -0800 |
commit | ab52eb7d9f6f4e8e95c3bd15fe757c6e789cc29d (patch) | |
tree | 5e79f410b47e80515e982ca07f82c5f01b593cce /rpc | |
parent | 692c0e98da8613c004f24ccf7084fc517ba8b4e4 (diff) |
core: remove ref/unref while unwinding frames
Change-Id: Ib196ffdf8122a9510cc7c5953303a6e730091302
BUG: 853373
Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com>
Reviewed-on: http://review.gluster.org/4062
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-lib/src/rpc-clnt.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index fef604765c2..a2f78726ee9 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -339,11 +339,9 @@ out: void saved_frames_unwind (struct saved_frames *saved_frames) { - struct rpc_clnt *clnt = NULL; struct saved_frame *trav = NULL; struct saved_frame *tmp = NULL; char timestr[1024] = {0,}; - struct iovec iov = {0,}; list_splice_init (&saved_frames->lk_sf.list, &saved_frames->sf.list); @@ -370,14 +368,12 @@ saved_frames_unwind (struct saved_frames *saved_frames) trav->rpcreq->xid); saved_frames->count--; - clnt = rpc_clnt_ref (trav->rpcreq->conn->rpc_clnt); trav->rpcreq->rpc_status = -1; trav->rpcreq->cbkfn (trav->rpcreq, &iov, 1, trav->frame); rpc_clnt_reply_deinit (trav->rpcreq, trav->rpcreq->conn->rpc_clnt->reqpool); - clnt = rpc_clnt_unref (clnt); list_del_init (&trav->list); mem_put (trav); } |