Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions include/asio/detail/impl/io_uring_service.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,14 @@ void io_uring_service::init_ring()
asio::detail::throw_error(ec, "io_uring_queue_init");
}

#if defined(ASIO_DISABLE_IO_URING_IOWAIT)
# if !defined(IORING_FEAT_NO_IOWAIT)
# error ASIO_DISABLE_IO_URING_IOWAIT requires liburing 2.12 or later
# endif // !defined(IORING_FEAT_NO_IOWAIT)
// Opt out of io_uring's in_iowait task marking.
(void)::io_uring_set_iowait(&ring_, false);
#endif // defined(ASIO_DISABLE_IO_URING_IOWAIT)

#if !defined(ASIO_HAS_IO_URING_AS_DEFAULT)
event_fd_ = ::eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
if (event_fd_ < 0)
Expand Down
7 changes: 7 additions & 0 deletions src/doc/platform_macros.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ needs.
]
[]
]
[
[`ASIO_DISABLE_IO_URING_IOWAIT`]
[
Linux: suppress io_uring's `in_iowait` task marking.
]
[]
]
[
[`ASIO_HAS_KQUEUE`]
[
Expand Down
7 changes: 7 additions & 0 deletions src/doc/using.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ functionality, and behaviour of Asio.
pipe to interrupt blocked epoll/select system calls.
]
]
[
[`ASIO_DISABLE_IO_URING_IOWAIT`]
[
Suppresses io_uring's `in_iowait` task marking on Linux via
`io_uring_set_iowait()`.
]
]
[
[`ASIO_DISABLE_KQUEUE`]
[
Expand Down