Commit ff755381 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix memunionfs reap race condition.

parent 64e13af4
...@@ -425,8 +425,10 @@ func (me *memNodeFile) InnerFile() fuse.File { ...@@ -425,8 +425,10 @@ func (me *memNodeFile) InnerFile() fuse.File {
} }
func (me *memNodeFile) Release() { func (me *memNodeFile) Release() {
me.node.fs.release() // Must do the subfile release first, as that may flush data
// to disk.
me.File.Release() me.File.Release()
me.node.fs.release()
} }
func (me *memNodeFile) Flush() fuse.Status { func (me *memNodeFile) Flush() fuse.Status {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment