diff options
author | Amar Tumballi <amarts@redhat.com> | 2017-09-12 23:01:46 +0530 |
---|---|---|
committer | Xavier Hernandez <jahernan@redhat.com> | 2017-11-08 08:33:22 +0000 |
commit | b79f29694165a65666d4177619d57b54641e4255 (patch) | |
tree | 13022c58cf0e13f4e3823776634086b93994e839 /libglusterfs/src/stack.c | |
parent | d109c7b79e15ab1940cd083636e867b1d4ed204e (diff) |
xlator: add more metrics per fops
Make sure to handle these counters in STACK_WIND/UNWIND macro, and
keep the counters as part of xlator_t structure itself, to provide
infra to monitoring.
Updates #137
Change-Id: Ib54d45e2321c2b095dac5810c37e6cdffe1f71b7
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/stack.c')
-rw-r--r-- | libglusterfs/src/stack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/stack.c b/libglusterfs/src/stack.c index 5527814a19d..bf905ca0b0e 100644 --- a/libglusterfs/src/stack.c +++ b/libglusterfs/src/stack.c @@ -55,6 +55,7 @@ create_frame (xlator_t *xl, call_pool_t *pool) pool->cnt++; } UNLOCK (&pool->lock); + GF_ATOMIC_INC (pool->total_count); LOCK_INIT (&stack->stack_lock); |