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'm assuming the objects have some kind of IDs (ideally strings, so you can incorporate path), so maybe we could use that to take locks in order? That doesn't even have to be imposed by server.
Lock hierarchy sounds doable, but you need to be careful and normalize paths and document that this assumes we can't have two views of the same files in the filesystem (i.e. you can't have the same directory mounted in two places).
When a syscall operates on two files, there seems to be a possibility of a deadlock.
A trivial example would be:
rename("foo.txt", "bar.txt")
rename("bar.txt", "foo.txt")
Roughly at the same time. Another example would be
sendfile()
.Or maybe there is no problem actually? The
Server
can impose some ordering to prevent deadlocks?The text was updated successfully, but these errors were encountered: