diff options
| author | shishir gowda <shishirng@gluster.com> | 2011-08-01 12:03:19 +0530 | 
|---|---|---|
| committer | Anand Avati <avati@gluster.com> | 2011-08-01 01:13:39 -0700 | 
| commit | 09232fd6855f288c47b5396dcd4d4245a154576f (patch) | |
| tree | 4b9c939cd3958b3630299172b09b891621d56093 | |
| parent | a59fc489bebce1c81d0a22d53794d7e41f3f4067 (diff) | |
IO-threads: Support for loading io-threads xlator on client side
New set option performance.client-io-threads added to enable/disable it.
Default behavior is io-threads is off on client side
Loaded only on fuse volume below io-stats.
BUG: 3122
Change-Id: I9a4852e0ded3e8b4adcb5b5930bc3e17d1beb10a
Reviewed-on: http://review.gluster.com/134
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index d76cf2864c9..de01ce608dd 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -146,7 +146,7 @@ static struct volopt_map_entry glusterd_volopt_map[] = {          {"performance.io-cache",                 "performance/io-cache",      "!perf", "on", NO_DOC}, /* NODOC */          {"performance.quick-read",               "performance/quick-read",    "!perf", "on", NO_DOC}, /* NODOC */          {"performance.stat-prefetch",            "performance/stat-prefetch", "!perf", "on", NO_DOC},      /* NODOC */ - +        {"performance.client-io-threads",        "performance/io-threads",    "!perf", "off", NO_DOC},          {MARKER_VOL_KEY,                         "features/marker",           "!marker", "off", NO_DOC},          {"nfs.enable-ino32",                     "nfs/server",                "nfs.enable-ino32", NULL, GLOBAL_DOC}, @@ -1956,6 +1956,10 @@ build_nfs_graph (glusterfs_graph_t *graph, dict_t *mod_dict)          if (ret)                  goto out; +        ret = dict_set_str (set_dict, "performance.client-io-threads", "off"); +        if (ret) +                goto out; +          nfsxl = volgen_graph_add_as (graph, "nfs/server", "nfs-server");          if (!nfsxl) {                  ret = -1;  | 
