Commit 3a0c7ef7 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Note remaining race in in-process unmount.

parent e0317ddb
...@@ -321,6 +321,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) Status { ...@@ -321,6 +321,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) Status {
} }
mount.mountInode = nil mount.mountInode = nil
// TODO - racy.
mountInode.mountPoint = nil mountInode.mountPoint = nil
delete(parentNode.children, name) delete(parentNode.children, name)
...@@ -370,9 +371,9 @@ func (c *FileSystemConnector) DeleteNotify(dir *Inode, child *Inode, name string ...@@ -370,9 +371,9 @@ func (c *FileSystemConnector) DeleteNotify(dir *Inode, child *Inode, name string
chId = child.nodeId chId = child.nodeId
child.treeLock.RUnlock() child.treeLock.RUnlock()
} }
dir.treeLock.RUnlock() dir.treeLock.RUnlock()
if dir == c.rootNode { if dir == c.rootNode {
n = raw.FUSE_ROOT_ID n = raw.FUSE_ROOT_ID
} }
......
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