diff options
author | alc <alc@FreeBSD.org> | 2003-02-09 20:40:36 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-02-09 20:40:36 +0000 |
commit | dfbc8a7fc013e99fd5a35d3ed44a49de3bc098f2 (patch) | |
tree | 1a56855cd1635dd6a1d4873d7f3b6d52a98db2a1 /sys/vm | |
parent | 5428aebe8f96155a6b5045faa4d89eebd13edc11 (diff) | |
download | FreeBSD-src-dfbc8a7fc013e99fd5a35d3ed44a49de3bc098f2.zip FreeBSD-src-dfbc8a7fc013e99fd5a35d3ed44a49de3bc098f2.tar.gz |
Add a comment describing how pagedaemon_wakeup() should be used and
synchronized.
Suggested by: tegge
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pageout.c | 6 |
1 files changed, 6 insertions, 0 deletions
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() { |