fix io_uring max submissions being capped to 0 #1958
fix io_uring max submissions being capped to 0 #1958catfinated wants to merge 5 commits intoNVIDIA:mainfrom
Conversation
|
how funny. i spotted that |
|
That is funny. I did post an issue report a few days ago that included a fix. I am particularly interested in the io_uring support so it was the first thing I tried to run and ran into that bug. As far as the other changes I believe they are needed but its possibly compiler dependent (or I am possibly missing some detail as I just started looking at the codebase). I am on gcc 15.2.1 and clang 22.1.1 and without those changes to the unit test I get an ambiguous function call error: |
| inline constexpr auto __umin(std::initializer_list<std::size_t> __il) noexcept -> std::size_t | ||
| { | ||
| std::size_t __m = std::numeric_limits<std::size_t>::max(); | ||
| std::size_t __m = ~0UL; |
There was a problem hiding this comment.
[nit] #include <limits> is no longer need with this initializer
|
could you pls run clang-format-21 over |
|
@ericniebler Thanks, not sure why my clang-format did the wrong thing. Should I change the PR title to align with the fact that this now just addresses the unit test function call ambiguity issue instead of the |
This addresses #1949.
With this change, the io_uring context submission queue max submissions no longer gets capped to 0 which allows work to actually be submitted to the kernel. In particular, the bug this is addressing was causing the
run_until_stopped()method to break out of the main loop immediately causing both the example code and unit test to hang indefinitely at blockingsync_waitcalls.This also resolves an issue in the io_uring related unit tests where calls to
start_detachedwere ambiguous. This was necessary to compile with io_uring support enabled as well as to validate the fix since the unit test also encountered the hanging issue.