summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2014-01-15 17:03:38 +0530
committerRaghavendra Bhat <raghavendra@redhat.com>2014-01-15 17:04:36 +0530
commitba3cf3a90bd9ba9648252f12fcfce4f0a66c3b74 (patch)
tree46075cfcdeaaba85172b5f0451b11d1614b66f36
parent6cb4c91339e5e6452bbb3de6d5f2e75c50d687bc (diff)
protocol/server: get the client object from frame->root even in barrier
* Remove the reference to client object from server_state_t structure Change-Id: Ic2dbf9dd487f1177bd889fe481e63bc063fd6183 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
-rw-r--r--xlators/protocol/server/src/server-helpers.c3
-rw-r--r--xlators/protocol/server/src/server.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c
index a4055f1..f0b040c 100644
--- a/xlators/protocol/server/src/server-helpers.c
+++ b/xlators/protocol/server/src/server-helpers.c
@@ -956,8 +956,7 @@ gf_barrier_transmit (server_conf_t *conf, gf_barrier_payload_t *payload)
if (frame) {
state = CALL_STATE (frame);
frame->local = NULL;
- if (state)
- client = state->client;
+ client = frame->root->client;
}
/* currently lk fops are not barrier'ed. This is reflecting code in
* server_submit_reply */
diff --git a/xlators/protocol/server/src/server.h b/xlators/protocol/server/src/server.h
index 165058e..782327d 100644
--- a/xlators/protocol/server/src/server.h
+++ b/xlators/protocol/server/src/server.h
@@ -124,7 +124,6 @@ int
resolve_and_resume (call_frame_t *frame, server_resume_fn_t fn);
struct _server_state {
- struct _client_t *client;
rpc_transport_t *xprt;
inode_table_t *itable;