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-11999 dne: performance improvement for file creation
[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
c1f79ae
..
e5fff82
100644
(file)
--- a/
lustre/utils/libmount_utils_ldiskfs.c
+++ b/
lustre/utils/libmount_utils_ldiskfs.c
@@
-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);