Removed TODO again. I tried a similar event mechanism as used for busy pages
in VMCache, but, if anything, that makes a -j8 build marginally slower. I guess busy vnodes are encountered so rarely that the additional overhead for a more intelligent algorithm isn't really worth it. Reduced the wait time, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34845 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1126,7 +1126,7 @@ get_vnode(dev_t mountID, ino_t vnodeID, struct vnode** _vnode, bool canWait,
|
||||
|
||||
mutex_lock(&sVnodeMutex);
|
||||
|
||||
int32 tries = 1000;
|
||||
int32 tries = 2000;
|
||||
// try for 10 secs
|
||||
restart:
|
||||
struct vnode* vnode = lookup_vnode(mountID, vnodeID);
|
||||
@@ -1138,8 +1138,7 @@ restart:
|
||||
vnodeID);
|
||||
return B_BUSY;
|
||||
}
|
||||
// TODO: Replace this mechanism!
|
||||
snooze(10000); // 10 ms
|
||||
snooze(5000); // 5 ms
|
||||
mutex_lock(&sVnodeMutex);
|
||||
goto restart;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user