path: root/rpc/rpc-lib/src/rpc-drc.h
diff options
authorMohit Agrawal <>2020-04-09 13:08:23 +0530
committerXavi Hernandez <>2020-04-15 08:00:49 +0000
commitd0cb5cbaff22ec5fcb685a327d6d54e5ae8d87f2 (patch)
treea1a8c773310a82f304621a768b047536db5d07e9 /rpc/rpc-lib/src/rpc-drc.h
parent0407d10f147862eb1c7854aed3adfbc3e1503c5d (diff)
test: tests/bugs/rpc/bug-847624.t is crashed
Problem: glusterfs(GNFS) is crashing at the time of handling Pollerr event in rpcsvc_drc_client_unref.GNFS is crashed because ref was 0 at the time of unref and ref was taken while Pollin event successfully handled. Solution: Convert drc_client ref to atomic ref to avoid the crash Change-Id: Ia4c054f2f388032a5cd99597d0cfa18b003ca690 Fixes: #1038 Signed-off-by: Mohit Agrawal <>
Diffstat (limited to 'rpc/rpc-lib/src/rpc-drc.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpc-drc.h b/rpc/rpc-lib/src/rpc-drc.h
index 6aaede0828a..ce66430809b 100644
--- a/rpc/rpc-lib/src/rpc-drc.h
+++ b/rpc/rpc-lib/src/rpc-drc.h
@@ -24,7 +24,7 @@ struct drc_client {
struct rb_table *rbtree;
/* no. of ops currently cached */
uint32_t op_count;
- uint32_t ref;
+ gf_atomic_uint32_t ref;
struct list_head client_list;