summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/performance/io-cache/src')
-rw-r--r--xlators/performance/io-cache/src/io-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index f73cdb1117d..49a1ce82391 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -1338,7 +1338,7 @@ ioc_lk (call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t cmd,
int32_t
ioc_get_priority_list (const char *opt_str, struct list_head *first)
{
- int32_t max_pri = 0;
+ int32_t max_pri = 1;
char *tmp_str = NULL;
char *tmp_str1 = NULL;
char *tmp_str2 = NULL;
@@ -1498,6 +1498,7 @@ init (xlator_t *this)
}
INIT_LIST_HEAD (&table->priority_list);
+ table->max_pri = 1;
if (dict_get (options, "priority")) {
char *option_list = data_to_str (dict_get (options,
"priority"));