From e795fcf2895496ad5412bfd4ac50a358567ecabb Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 25 Aug 2011 14:46:52 +0530 Subject: performance/io-threads: Introduce new priority and priority-thread-limits Change-Id: I7b4e7c467b833bc5896808e6e1d1b1a0322c4fdb BUG: 3483 Reviewed-on: http://review.gluster.com/318 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Vijay Bellur --- xlators/performance/io-threads/src/io-threads.h | 3 +++ 1 file changed, 3 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 52910db05c9..d09fec94d8e 100644 --- a/xlators/performance/io-threads/src/io-threads.h +++ b/xlators/performance/io-threads/src/io-threads.h @@ -57,6 +57,7 @@ typedef enum { IOT_PRI_HI = 0, /* low latency */ IOT_PRI_NORMAL, /* normal */ IOT_PRI_LO, /* bulk */ + IOT_PRI_LEAST, /* least */ IOT_PRI_MAX, } iot_pri_t; @@ -73,6 +74,8 @@ struct iot_conf { struct list_head reqs[IOT_PRI_MAX]; + int32_t ac_iot_limit[IOT_PRI_MAX]; + int32_t ac_iot_count[IOT_PRI_MAX]; int queue_size; pthread_attr_t w_attr; -- cgit