-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to let submit_and_wait
to wait for a new entry
#28
Comments
I failed to reproduce this problem. can you share your code? |
open_options.rs: https://fars.ee/0plu/ the other tests work well my kernel is 5.6.10-arch1-1, it should support Openat2 |
run cargo test with
if |
You forgot to call |
oh.... thank you to point my mistake 🤣. after call it, the |
with concurrent IoUring, I create a thread and it will call
submit_and_wait(1)
to waiting for the entry, when it is waiting, I create another thread and push a new entry into sqe. but the thread one doesn't know a new entry is pushed.How to let
submit_and_wait
know a new entry is pushed and return it when it ready? I've tried to callsubmit
after push, it works withReadv
andWritev
, thesubmit_and_wait
return after read or write complete, butOpenat2
doesn't work, thesubmit_and_wait
still blocking even the file is created.Is there a better way to do this?
The text was updated successfully, but these errors were encountered: