Whamcloud - gitweb
LU-11999 dne: performance improvement for file creation
[fs/lustre-release.git] / lustre / utils / libmount_utils_ldiskfs.c
index c1f79ae..e5fff82 100644 (file)
@@ -1173,7 +1173,9 @@ static int tune_block_dev_scheduler(const char *sys_path, const char *new_sched)
        *e = '\0';
 
        if (strcmp(old_sched, "noop") == 0 ||
-           strcmp(old_sched, new_sched) == 0)
+           strcmp(old_sched, "deadline") == 0 ||
+           strcmp(old_sched, "mq-deadline") == 0 ||
+           strstr(old_sched, new_sched) == 0)
                return 0;
 
        rc = write_file(path, new_sched);