Skip to content

liburing defined setup flags not supported by the kernel #1380

@aeolio

Description

@aeolio

liburing uses its own version of io_uring.h, copied from the kernel source tree. Using newer versions of liburing with older kernels, IORING_SETUP_* flags may be defined that the kernel system call (io_uring_setup) rejects returning EINVAL. Since the flags are defined, the usual preprocessor directive cannot be used. Is there a more elegant way than executing io_uring_queue_init() twice? That would result in four system calls altogether, because liburing does something similar with IORING_SETUP_NO_SQARRAY internally ...

Technical information: linux-5.10.235, liburing-2.6, the offending flag is IORING_SETUP_SINGLE_ISSUER, introduced in linux-6.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions