-
Notifications
You must be signed in to change notification settings - Fork 417
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
File shared/exclusive lock/unlock #85
Comments
5.6 is feature locked at this point, and not sure I'll have time to work on this for 5.7. So 5.8 is a more realistic target, I'm afraid. |
Locking and unlocking is very important part of the project i wanted to use Liburing in :( |
Sorry, there's really nothing I can do, 5.6 is totally closed, it's bug fixes only after the merge window. And I've got other items I'm working on, hence I'm not going to promise anything for 5.7. Just trying to manage your expectations. |
No worries... I will just have to rig a temp fix for now :) |
Locking/unlocking and directory contents listing (getdents64 #111) is the first wave an totally uring drived io app will meet. |
@axboe if I was to try and implement |
Lock is only a lock as long as other software in your system also use the same method |
are sucess exclusive unlock script ? you run own web ? |
I am not sure what you are asking! None the less... I am currently using an atomic counter to reserve space, this way no external fd/pid lock/unlock system needs to be used, also its much faster, of course this is only viable within the software. External process can still alter the file.
Lock/unlock is for file write not for web use. |
Any way we can help with this? |
I am adding this here to keep track of this topic.
If we could have functions like
io_uring_prep_lock()
andio_uring_prep_unlock()
for file locking/unlocking using something likeIOSQE_IO_LINK
to join few sequence together.It would really be nice if this can be in Linux 5.6 :)
The text was updated successfully, but these errors were encountered: