X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=diskutil.c;h=c3bcec928ac29a6a2b753b3ccf2eaeb583a29dab;hb=bd4d9bdc5097c3b35b5172508e1a2828296e01c2;hp=c34841a2af2c379b10b47b162ef79e99fd88a040;hpb=2a20eebccf88b3be2c56d4b5cd6cb4466b289e4f;p=fio.git diff --git a/diskutil.c b/diskutil.c index c34841a2..c3bcec92 100644 --- a/diskutil.c +++ b/diskutil.c @@ -431,9 +431,6 @@ static struct disk_util *__init_per_file_disk_util(struct thread_data *td, sprintf(path, "%s", tmp); } - if (td->o.ioscheduler && !td->sysfs_root) - td->sysfs_root = strdup(path); - return disk_util_add(td, majdev, mindev, path); } @@ -452,12 +449,8 @@ static struct disk_util *init_per_file_disk_util(struct thread_data *td, mindev); du = disk_util_exists(majdev, mindev); - if (du) { - if (td->o.ioscheduler && !td->sysfs_root) - td->sysfs_root = strdup(du->sysfs_root); - + if (du) return du; - } /* * for an fs without a device, we will repeatedly stat through