X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=options.c;h=9508607438a5149df800322f6c081ea6348d39bc;hb=a9fd4fa0693567fe94a1721fc6280f8cd1728259;hp=626c7c1715976c7e77c8e18327caf5d0a3639abb;hpb=1f90e9bb1ecd102400ba43c40d7237cae25e95eb;p=fio.git diff --git a/options.c b/options.c index 626c7c17..95086074 100644 --- a/options.c +++ b/options.c @@ -493,6 +493,9 @@ int fio_cpus_split(os_cpu_mask_t *mask, unsigned int cpu_index) const long max_cpu = cpus_online(); cpus_in_mask = fio_cpu_count(mask); + if (!cpus_in_mask) + return 0; + cpu_index = cpu_index % cpus_in_mask; index = 0; @@ -1773,13 +1776,11 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { .help = "Linux native asynchronous IO", }, #endif -#ifdef CONFIG_LIBAIO -#ifdef ARCH_HAVE_AIORING - { .ival = "aio-ring", - .help = "Linux native asynchronous IO", +#ifdef ARCH_HAVE_IOURING + { .ival = "io_uring", + .help = "Fast Linux native aio", }, #endif -#endif #ifdef CONFIG_POSIXAIO { .ival = "posixaio", .help = "POSIX asynchronous IO",