Skip to content
Snippets Groups Projects
Commit ce72cadb authored by rsc's avatar rsc
Browse files

fix bug fix

parent 13ae8808
No related branches found
No related tags found
No related merge requests found
......@@ -227,7 +227,7 @@ iunlock(struct inode *ip)
panic("iunlock");
acquire(&icache.lock);
ip->flags = 0;
ip->flags &= ~I_BUSY;
wakeup(ip);
release(&icache.lock);
}
......@@ -247,7 +247,7 @@ iput(struct inode *ip)
ip->type = 0;
iupdate(ip);
acquire(&icache.lock);
ip->flags &= ~I_BUSY;
ip->flags = 0;
wakeup(ip);
}
ip->ref--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment