MFC: 1.176

Don't pretend to be thread0 when calling sync().
It confuses the lock manager since in some places thread0 is
then used for vnode locking while curthread is used for vnode unlocking.

Approved by:    re (scottl@)
This commit is contained in:
ups 2005-10-06 17:53:46 +00:00
parent 2edbd2e41a
commit 94034fc30c

View File

@ -289,7 +289,7 @@ boot(int howto)
waittime = 0;
sync(&thread0, NULL);
sync(curthread, NULL);
/*
* With soft updates, some buffers that are
@ -314,7 +314,7 @@ boot(int howto)
if (nbusy < pbusy)
iter = 0;
pbusy = nbusy;
sync(&thread0, NULL);
sync(curthread, NULL);
#ifdef PREEMPTION
/*