Skip to content

IoUring: try to enable IORING_SETUP_SUBMIT_ALL when supported by the running system#14677

Merged
normanmaurer merged 1 commit into
4.2from
submit_all
Jan 20, 2025
Merged

IoUring: try to enable IORING_SETUP_SUBMIT_ALL when supported by the running system#14677
normanmaurer merged 1 commit into
4.2from
submit_all

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

@normanmaurer normanmaurer commented Jan 15, 2025

Motivation

When porting io_uring to the main branch we introduced the use of IORING_SETUP_SUBMIT_ALL which makes a lot of sense. Unfortunally we never ended up actually enable it as we guarded it with an ifdef that was always false due the usage of an outdated io_uring.h file.

Motifications:

  • Check if IORING_SETUP_SUBMIT_ALL is supported by the running system and if this is the case enable it
  • Update the io_uring.h file

Result:

IORING_SETUP_SUBMIT_ALL is used when possible

@normanmaurer normanmaurer force-pushed the submit_all branch 2 times, most recently from 759ff09 to 9e9902b Compare January 15, 2025 14:51
@normanmaurer normanmaurer modified the milestones: 4.2.0.Final, 4.2.0.RC2 Jan 15, 2025
@normanmaurer
Copy link
Copy Markdown
Member Author

I think this should also be ported to the incubator branch

Comment thread transport-native-io_uring/src/main/c/netty_io_uring_native.c Outdated
@normanmaurer normanmaurer modified the milestones: 4.2.0.RC2, 4.2.0.Final Jan 20, 2025
@normanmaurer normanmaurer changed the title IoUring: Always try to enable IORING_SETUP_SUBMIT_ALL IoUring: try to enable IORING_SETUP_SUBMIT_ALL when supported by the running system Jan 20, 2025
…running system

Motivation

When porting io_uring to the main branch we introduced the use of IORING_SETUP_SUBMIT_ALL which makes a lot of sense. Unfortunally we never ended up actually enable it as we guarded it with an ifdef that was always false due the usage of an outdated io_uring.h file.

Motifications:

- Check if IORING_SETUP_SUBMIT_ALL is supported by the running system and if this is the case enable it
- Update the io_uring.h file

Result:

IORING_SETUP_SUBMIT_ALL is used when possible
@normanmaurer normanmaurer merged commit a16967c into 4.2 Jan 20, 2025
@normanmaurer normanmaurer deleted the submit_all branch January 20, 2025 17:17
@normanmaurer
Copy link
Copy Markdown
Member Author

Merging this as I need some part of it for https://github.com/netty/netty/pull/14699/files

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants