From dfbc8a7fc013e99fd5a35d3ed44a49de3bc098f2 Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 9 Feb 2003 20:40:36 +0000 Subject: Add a comment describing how pagedaemon_wakeup() should be used and synchronized. Suggested by: tegge --- sys/vm/vm_pageout.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/vm/vm_pageout.c') diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 427d351..8e3c39f 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1481,6 +1481,12 @@ vm_pageout() } } +/* + * Unless the page queue lock is held by the caller, this function + * should be regarded as advisory. Specifically, the caller should + * not msleep() on &cnt.v_free_count following this function unless + * the page queue lock is held until the msleep() is performed. + */ void pagedaemon_wakeup() { -- cgit v1.1