It'll be final. Some day.
Fixes:
ebec344dd336 ("engines/libaio: update to new io_setup2() system call")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
#ifndef ARCH_X86_64_H
#define ARCH_X86_64_H
#ifndef ARCH_X86_64_H
#define ARCH_X86_64_H
-#ifndef __NR_sys_iosetup2
-#define __NR_sys_iosetup2 335
+#ifndef __NR_sys_io_setup2
+#define __NR_sys_io_setup2 335
#endif
static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
#endif
static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
bool hipri)
{
#ifdef __NR_sys_io_setup2
bool hipri)
{
#ifdef __NR_sys_io_setup2
if (hipri)
flags = IOCTX_FLAG_IOPOLL;
if (hipri)
flags = IOCTX_FLAG_IOPOLL;
* care about the user ring. If that fails, the kernel is too old
* and we need the right depth.
*/
* care about the user ring. If that fails, the kernel is too old
* and we need the right depth.
*/
- if (!o->userspace_reap)
- err = fio_libaio_queue_init(ld, INT_MAX, o->hipri);
- if (o->userspace_reap || err == -EINVAL)
- err = fio_libaio_queue_init(ld, td->o.iodepth, o->hipri);
+ err = fio_libaio_queue_init(ld, td->o.iodepth, o->hipri);
if (err) {
td_verror(td, -err, "io_queue_init");
log_err("fio: check /proc/sys/fs/aio-max-nr\n");
if (err) {
td_verror(td, -err, "io_queue_init");
log_err("fio: check /proc/sys/fs/aio-max-nr\n");