From 9996f95b28b3782887b7c233cdc0ba686c38b245 Mon Sep 17 00:00:00 2001 From: Anuradha Talur Date: Thu, 21 Apr 2016 17:20:09 +0530 Subject: performance/decompounder: Introducing decompounder xlator This xlator decompounds the compound fops received, and executes them serially. Change-Id: Ieddcec3c2983dd9ca7919ba9d7ecaa5192a5f489 BUG: 1303829 Signed-off-by: Anuradha Talur Reviewed-on: http://review.gluster.org/13577 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- libglusterfs/src/defaults.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libglusterfs/src/defaults.h') diff --git a/libglusterfs/src/defaults.h b/libglusterfs/src/defaults.h index 148dc84b1c5..cae69a536a3 100644 --- a/libglusterfs/src/defaults.h +++ b/libglusterfs/src/defaults.h @@ -78,6 +78,22 @@ typedef struct { struct gf_lease lease; } default_args_t; +typedef struct { + int fop_enum; + int fop_length; + int *enum_list; + default_args_t *req_list; + dict_t *xdata; +} compound_args_t; + +typedef struct { + int fop_enum; + int fop_length; + int *enum_list; + default_args_cbk_t *rsp_list; + dict_t *xdata; +} compound_args_cbk_t; + int32_t default_notify (xlator_t *this, int32_t event, void *data, -- cgit