]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When shutting down the syncer kernel thread, first tell it to run
authortruckman <truckman@FreeBSD.org>
Thu, 1 Jul 2004 23:59:19 +0000 (23:59 +0000)
committertruckman <truckman@FreeBSD.org>
Thu, 1 Jul 2004 23:59:19 +0000 (23:59 +0000)
commit9ed03e6eb30a4961f22d094c43eb9702ef6841aa
treebd726f82611b583ab8154f71f4f4358da30d8de8
parent657c0f9155fc383a82ca73a70137a4f6ec201444
When shutting down the syncer kernel thread, first tell it to run
faster and iterate to over its work list a few times in an attempt
to empty the work list before the syncer terminates.  This leaves
fewer dirty blocks to be written at the "syncing disks" stage and
keeps the the "giving up on N buffers" problem from being triggered
by the presence of a large soft updates work list at system shutdown
time.  The downside is that the syncer takes noticeably longer to
terminate.

Tested by: "Arjan van Leeuwen" <avleeuwen AT piwebs DOT com>
Approved by: mckusick
sys/kern/vfs_subr.c