From cfbc524239b1d3bc417849e68379c81e83fd56d9 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 21 Feb 2018 23:03:48 +0530 Subject: 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 This patch is required to forward port io-threads namespace patch. Updates: #401 Change-Id: Id057c34a2abb9fc6dfb4afcd5c7bbbfe5693bbb8 Signed-off-by: Varsha Rao --- xlators/performance/io-threads/src/io-threads.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/performance/io-threads/src/io-threads.h') 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; -- cgit