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:
parent
fddd9c1d2f
commit
3fafa27b27
@ -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
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user