Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-11913 utils: allow "mq-deadline" as scheduler
[fs/lustre-release.git]
/
lustre
/
utils
/
libmount_utils_ldiskfs.c
diff --git
a/lustre/utils/libmount_utils_ldiskfs.c
b/lustre/utils/libmount_utils_ldiskfs.c
index
b40b7da
..
6807305
100644
(file)
--- a/
lustre/utils/libmount_utils_ldiskfs.c
+++ b/
lustre/utils/libmount_utils_ldiskfs.c
@@
-1209,7
+1209,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);