Skip to content

examples/io_uring-udp.c: IORING_SETUP_COOP_TASKRUN is incompatible with (IORING_SETUP_SQPOLL | IORING_SETUP_SQ_AFF)? #811

Description

@hi-glenn

https://github.com/axboe/liburing/blob/liburing-2.3/examples/io_uring-udp.c#L98

After replace the following code chunk

params.flags = IORING_SETUP_SUBMIT_ALL | IORING_SETUP_COOP_TASKRUN |
		       IORING_SETUP_CQSIZE;

with

params.flags = IORING_SETUP_SUBMIT_ALL | IORING_SETUP_COOP_TASKRUN |
		       IORING_SETUP_CQSIZE | IORING_SETUP_SQPOLL | IORING_SETUP_SQ_AFF;

params.sq_thread_idle = 10;
params.sq_thread_cpu = 1;

I get the error code:-22; and error info is Invalid argument.

My test environment is as the following:

Operating System: Ubuntu 22.04.1 LTS              
          Kernel: Linux 6.2.2-060202-generic
    Architecture: x86-64

Is my usage correct?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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