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:
Ingo Weinhold
2010-01-01 22:13:13 +00:00
parent ac20a24e6f
commit fb5c39cb6d
+2 -3
View File
@@ -1126,7 +1126,7 @@ get_vnode(dev_t mountID, ino_t vnodeID, struct vnode** _vnode, bool canWait,
mutex_lock(&sVnodeMutex); mutex_lock(&sVnodeMutex);
int32 tries = 1000; int32 tries = 2000;
// try for 10 secs // try for 10 secs
restart: restart:
struct vnode* vnode = lookup_vnode(mountID, vnodeID); struct vnode* vnode = lookup_vnode(mountID, vnodeID);
@@ -1138,8 +1138,7 @@ restart:
vnodeID); vnodeID);
return B_BUSY; return B_BUSY;
} }
// TODO: Replace this mechanism! snooze(5000); // 5 ms
snooze(10000); // 10 ms
mutex_lock(&sVnodeMutex); mutex_lock(&sVnodeMutex);
goto restart; goto restart;
} }