summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs.c b/fs.c
index e92ffda..3c3f32a 100644
--- a/fs.c
+++ b/fs.c
@@ -243,12 +243,12 @@ iput(struct inode *ip)
panic("iput busy");
ip->flags |= I_BUSY;
release(&icache.lock);
- // XXX convince rsc that no one will come find this inode.
itrunc(ip);
ip->type = 0;
iupdate(ip);
acquire(&icache.lock);
ip->flags &= ~I_BUSY;
+ wakeup(ip);
}
ip->ref--;
release(&icache.lock);