a3470f
From 1425f0c723c7f3811a4104efdf3cb55f0bb02731 Mon Sep 17 00:00:00 2001
a3470f
From: Csaba Henk <csaba@redhat.com>
a3470f
Date: Fri, 15 Dec 2017 08:22:21 +0100
a3470f
Subject: [PATCH 112/128] write-behind: Allow trickling-writes to be
a3470f
 configurable
a3470f
a3470f
This is the undisputed/trivial part of Shreyas' patch
a3470f
he attached to https://bugzilla.redhat.com/1364740 (of
a3470f
which the current bug is a clone).
a3470f
a3470f
We need more evaluation for the page_size and window_size
a3470f
bits before taking them on.
a3470f
a3470f
> Change-Id: Iaa0b9a69d35e522b77a52a09acef47460e8ae3e9
a3470f
> BUG: 1428060
a3470f
> Co-authored-by: Shreyas Siravara <sshreyas@fb.com>
a3470f
> Signed-off-by: Csaba Henk <csaba@redhat.com>
a3470f
> Reviewed-on: https://review.gluster.org/18719
a3470f
a3470f
Change-Id: Iaa0b9a69d35e522b77a52a09acef47460e8ae3e9
a3470f
BUG: 1426042
a3470f
Co-authored-by: Shreyas Siravara <sshreyas@fb.com>
a3470f
Signed-off-by: Csaba Henk <csaba@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/125932
a3470f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
---
a3470f
 libglusterfs/src/globals.h                      |  4 +++-
a3470f
 xlators/mgmt/glusterd/src/glusterd-volume-set.c | 12 ++++++++++++
a3470f
 2 files changed, 15 insertions(+), 1 deletion(-)
a3470f
a3470f
diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h
a3470f
index c627cfe..692d49d 100644
a3470f
--- a/libglusterfs/src/globals.h
a3470f
+++ b/libglusterfs/src/globals.h
a3470f
@@ -43,7 +43,7 @@
a3470f
  */
a3470f
 #define GD_OP_VERSION_MIN  1 /* MIN is the fresh start op-version, mostly
a3470f
                                 should not change */
a3470f
-#define GD_OP_VERSION_MAX  GD_OP_VERSION_3_13_0 /* MAX VERSION is the maximum
a3470f
+#define GD_OP_VERSION_MAX  GD_OP_VERSION_3_13_1 /* MAX VERSION is the maximum
a3470f
                                                   count in VME table, should
a3470f
                                                   keep changing with
a3470f
                                                   introduction of newer
a3470f
@@ -103,6 +103,8 @@
a3470f
 
a3470f
 #define GD_OP_VERSION_3_13_0   31300 /* Op-version for GlusterFS 3.13.0 */
a3470f
 
a3470f
+#define GD_OP_VERSION_3_13_1   31301 /* Op-version for GlusterFS 3.13.1 */
a3470f
+
a3470f
 #include "xlator.h"
a3470f
 
a3470f
 /* THIS */
a3470f
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
a3470f
index a57eb9e..c255be0 100644
a3470f
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
a3470f
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
a3470f
@@ -1762,6 +1762,18 @@ struct volopt_map_entry glusterd_volopt_map[] = {
a3470f
           .op_version = GD_OP_VERSION_RHS_3_0,
a3470f
           .flags      = OPT_FLAG_CLIENT_OPT
a3470f
         },
a3470f
+        { .key        = "performance.write-behind-trickling-writes",
a3470f
+          .voltype    = "performance/write-behind",
a3470f
+          .option     = "trickling-writes",
a3470f
+          .op_version = GD_OP_VERSION_3_13_1,
a3470f
+          .flags      = OPT_FLAG_CLIENT_OPT
a3470f
+        },
a3470f
+        { .key        = "performance.nfs.write-behind-trickling-writes",
a3470f
+          .voltype    = "performance/write-behind",
a3470f
+          .option     = "trickling-writes",
a3470f
+          .op_version = GD_OP_VERSION_3_13_1,
a3470f
+          .flags      = OPT_FLAG_CLIENT_OPT
a3470f
+        },
a3470f
         { .key        = "performance.lazy-open",
a3470f
           .voltype    = "performance/open-behind",
a3470f
           .option     = "lazy-open",
a3470f
-- 
a3470f
1.8.3.1
a3470f