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
removeMount should lock #17144
Comments
@cmonteroluque @karlitschek @DeepDiver1975 moving to 8.1.1. |
@PVince81 Is there any PR for this? |
No |
@PVince81 what is the criticality of this? |
Not critical. This should be seldom as it's only when unsharing files.
I documented this for completeness.
We should make sure that locking is water-tight eventually by covering
all operations.
|
@PVince81 agree that it needs to be better, 8.1.2 not looking possible at this point. |
Not sure why we put this on 8.1.4. Other remaining locking tasks like #17243 are now set to 9.0. |
I'm not sure this is needed, I don't think there is any chance for data loss since the worst that can happen is a different process writing to a mount that is being removed, which is the same result as when the other processed finished it's write before the storage is removed |
Best would be to do a test with |
@nickvergessen mind taking over ? If we find that we don't need a lock there then I'm fine dropping it, but we need to verify this. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
@icewind1991 looks like "$view->removeMount()" doesn't lock.
We should exclusive-lock the mount point path (not the storage root) to avoid concurrent processes to access that path during the umount (in case sharing takes a while...)
Requires #17070 to be merged first for the extra argument.
The same should be done for adding mount points (when sharing, etc)
The text was updated successfully, but these errors were encountered: