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 am currently transforming KuiBaDB into a fully asynchronous database, and want to use RIO as the underlying implementation of asynchronous IO.
But it seems that IORING_SETUP_SQPOLL can not work in RIO. RIO should also update Sq::ktail when IORING_SETUP_SQPOLL is enabled, but it doesn't. This causes the kernel to always think that there is no new SQE, which causes the Completion::wait() block forever.
fnmain(){letmut cfg = rio::Config::default();
cfg.sq_poll = true;let ring = cfg.start().expect("create uring");let file = std::fs::File::open("file").expect("openat");let data:&mut[u8] = &mut[0;66];let completion = ring.read_at(&file,&data,0);// if using threads
completion.wait().unwrap();}
I am currently transforming KuiBaDB into a fully asynchronous database, and want to use RIO as the underlying implementation of asynchronous IO.
But it seems that
IORING_SETUP_SQPOLL
can not work in RIO. RIO should also updateSq::ktail
when IORING_SETUP_SQPOLL is enabled, but it doesn't. This causes the kernel to always think that there is no new SQE, which causes theCompletion::wait()
block forever.The text was updated successfully, but these errors were encountered: