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

Don't take treeLock for forgetUpdate() in postLookup().

parent d96824ad
......@@ -117,6 +117,10 @@ func (me *FileSystemConnector) lookupUpdate(node *Inode) {
node.lookupCount += 1
}
// Must run outside treeLock.
//
// TODO - reconcile api for lookupUpdate() and forgetUpdate().
func (me *FileSystemConnector) forgetUpdate(node *Inode, forgetCount int) {
defer me.verify()
......
......@@ -87,8 +87,6 @@ func (me *FileSystemConnector) postLookup(fi *os.FileInfo, fsNode FsNode, code S
if !code.Ok() {
if attrNode != nil {
mount.treeLock.Lock()
defer mount.treeLock.Unlock()
me.forgetUpdate(attrNode, 1)
}
......
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