Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Manuel BOUYER <bouyer@netbsd.org>
List: source-changes
Date: 08/31/2000 17:41:41
Module Name:	syssrc
Committed By:	bouyer
Date:		Thu Aug 31 14:41:38 UTC 2000

Modified Files:
	syssrc/sys/kern: vfs_subr.c

Log Message:
in vfs_shutdown(), use sched_suspend() to suspend scheduling, and use
tsleep() instead of DELAY. Also, keep trying flushing buffers when the
number of dirty buffers decreases (20 rounds may not be enouth for a
very large buffer cache).

Using tsleep instead of delay gives a chance to others kernel threads to run,
which is needed for raidframe. With this change I've not been able to
reproduce the 'dirty buffer not flushed' problem with raidframe.


To generate a diff of this commit:
cvs rdiff -r1.137 -r1.138 syssrc/sys/kern/vfs_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.