diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-08-25 14:46:52 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-08-31 02:39:44 -0700 |
commit | e795fcf2895496ad5412bfd4ac50a358567ecabb (patch) | |
tree | aa1231240974419ecdeaba8a793490d4d79073a8 /xlators/performance/io-threads/src/io-threads.h | |
parent | cd567c063ec25b280d3fb5686a69b068c2d6d6df (diff) |
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 <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amar@gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/performance/io-threads/src/io-threads.h')
-rw-r--r-- | xlators/performance/io-threads/src/io-threads.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; |