diff options
author | Varsha Rao <varao@redhat.com> | 2018-02-21 23:03:48 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-02-22 17:25:13 +0000 |
commit | cfbc524239b1d3bc417849e68379c81e83fd56d9 (patch) | |
tree | b1533cb9a6ceacb726e2ed38db1c7dc659bb946c /xlators/performance/io-threads/src/io-threads.h | |
parent | efbfd17dfc73c4e6055adeffc65be1697f094168 (diff) |
performance/io-threads: Add threads to priority based stagnant queues
> performance/io-threads: Add watchdog to cover up a possible thread leak
> Commit ID: 8b6804f75c
> https://review.gluster.org/#/c/18239/
> By Shreyas Siravara <sshreyas@fb.com>
This patch is required to forward port io-threads namespace patch.
Updates: #401
Change-Id: Id057c34a2abb9fc6dfb4afcd5c7bbbfe5693bbb8
Signed-off-by: Varsha Rao <varao@redhat.com>
Diffstat (limited to 'xlators/performance/io-threads/src/io-threads.h')
-rw-r--r-- | xlators/performance/io-threads/src/io-threads.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.h b/xlators/performance/io-threads/src/io-threads.h index bd1c3f523c4..8e16ada55a0 100644 --- a/xlators/performance/io-threads/src/io-threads.h +++ b/xlators/performance/io-threads/src/io-threads.h @@ -74,6 +74,11 @@ struct iot_conf { gf_boolean_t down; /*PARENT_DOWN event is notified*/ gf_boolean_t mutex_inited; gf_boolean_t cond_inited; + + int32_t watchdog_secs; + gf_boolean_t watchdog_running; + pthread_t watchdog_thread; + gf_boolean_t queue_marked[GF_FOP_PRI_MAX]; }; typedef struct iot_conf iot_conf_t; |