Whamcloud - gitweb
LU-11736 utils: don't set max_sectors_kb on MDT/MGT
[fs/lustre-release.git] / lustre / utils / mount_utils_ldiskfs.c
index 02927ab..910e3b1 100644 (file)
@@ -1116,6 +1116,13 @@ static int set_blockdev_tunables(char *source, struct mount_opts *mop)
        if (!source)
                return -EINVAL;
 
+       /*
+        * Don't apply block device tuning for MDT or MGT devices,
+        * since we don't need huge IO sizes to get good performance
+        */
+       if (!IS_OST(&mop->mo_ldd))
+               return 0;
+
        ret_path = realpath(source, real_path);
        if (ret_path == NULL) {
                if (verbose)