summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-threads/src/io-threads.h
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@fb.com>2017-09-15 15:02:06 -0700
committerJeff Darcy <jdarcy@fb.com>2017-09-18 15:31:16 -0700
commite3e7c56323a21467e7e0a0d8f2adc5b05ce40a54 (patch)
treeb110db0fc886c33592f702cc1328b67e8bf6f2bd /xlators/performance/io-threads/src/io-threads.h
parent6c6b3bc12bee9c3b6ccba292828e316a26216075 (diff)
io-threads: re-port changes since 3.6 on top of FB version
Includes io-threads parts of the following patches: 9e3fea1 performance/io-threads: Exit all threads on PARENT_DOWN 2cfb7bc performance/io-threads: Exit threads in fini() as well Change-Id: Id7cc7720e75414fb8a3ac2db68a5fe63c459ffe2 Signed-off-by: Jeff Darcy <jdarcy@fb.com>
Diffstat (limited to 'xlators/performance/io-threads/src/io-threads.h')
-rw-r--r--xlators/performance/io-threads/src/io-threads.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.h b/xlators/performance/io-threads/src/io-threads.h
index 5c3403a7153..b6d44621067 100644
--- a/xlators/performance/io-threads/src/io-threads.h
+++ b/xlators/performance/io-threads/src/io-threads.h
@@ -11,12 +11,6 @@
#ifndef __IOT_H
#define __IOT_H
-#ifndef _CONFIG_H
-#define _CONFIG_H
-#include "config.h"
-#endif
-
-
#include "compat-errno.h"
#include "glusterfs.h"
#include "logging.h"
@@ -108,6 +102,9 @@ struct iot_conf {
gf_boolean_t queue_marked[IOT_PRI_MAX];
gf_boolean_t cleanup_disconnected_reqs;
+ gf_boolean_t down; /*PARENT_DOWN event is notified*/
+ gf_boolean_t mutex_inited;
+ gf_boolean_t cond_inited;
};
typedef struct iot_conf iot_conf_t;