summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/io-threads/src/io-threads.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c
index 9ace53ba5..8c0674d6e 100644
--- a/xlators/performance/io-threads/src/io-threads.c
+++ b/xlators/performance/io-threads/src/io-threads.c
@@ -44,7 +44,8 @@ iot_schedule (iot_conf_t *conf,
int32_t idx = 0;
iot_worker_t *selected_worker = NULL;
- idx = (inode->ino % conf->thread_count);
+ if (inode)
+ idx = (inode->ino % conf->thread_count);
selected_worker = conf->workers[idx];
iot_queue (selected_worker, stub);