You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tested this problem in Ubuntu 22.04 Linux 6.5.0-17-generic. The code hangs in calling File::write_at().await. In iopoll, tokio uring have to keep polling with submitting GETEVENTS but current tokio uring doesn't.
I found currently tokio uring runtime submits in thread park. So I fix example code adding ThreadParker that force to submit continously . ThreadParker is just simple future impl for busy wake.
It seems that add new async task for iopoll in runtime that keep submitting until completion.
The text was updated successfully, but these errors were encountered:
In iopoll without sqpoll mode, we need to submit repeatedly until we get
completion. This patch adds some future that keep calling wake() for
parking thread so runtime will submit on parking thread.
Signed-off-by: Sidong Yang <[email protected]>
Hi, I found some bug that the code hang when using iopoll without sqpoll.
This bug can be reproduced with example below.
I've tested this problem in Ubuntu 22.04 Linux 6.5.0-17-generic. The code hangs in calling
File::write_at().await
. In iopoll, tokio uring have to keep polling with submittingGETEVENTS
but current tokio uring doesn't.I found currently tokio uring runtime submits in thread park. So I fix example code adding
ThreadParker
that force to submit continously .ThreadParker
is just simple future impl for busy wake.It seems that add new async task for iopoll in runtime that keep submitting until completion.
The text was updated successfully, but these errors were encountered: