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.

Found by:	Yahoo!
Reviewed by:	ps@,jhb@
MFC after:	3 days
This commit is contained in:
ups 2005-09-22 15:34:15 +00:00
parent 923330aadc
commit 9d3a13d447

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
/*