]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use curthread instead of the FIRST_THREAD_IN_PROC for vnlru and syncer,
authorkib <kib@FreeBSD.org>
Wed, 5 Dec 2007 09:34:04 +0000 (09:34 +0000)
committerkib <kib@FreeBSD.org>
Wed, 5 Dec 2007 09:34:04 +0000 (09:34 +0000)
commit53229c8ee97f8b4b7ae8a8ecea863a22054ec1b3
treecbf3bd55524e66428c7b20d0e148ac0aa33db92a
parent58e4738b7973eae34a06ee0f41f657aab408a966
Use curthread instead of the FIRST_THREAD_IN_PROC for vnlru and syncer,
when applicable.

Aquire Giant slightly later for vnlru.

In the syncer, aquire the Giant only when a vnode belongs to the
non-MPsafe fs.

In both speedup_syncer() and syncer_shutdown(), remove the syncer thread from
the lbolt sleep queue after the syncer state is modified, not before.

Herded by: attilio
Tested by: Peter Holm
Reviewed by: ups
MFC after: 1 week
sys/kern/vfs_subr.c