Held pages, just like wired pages, should not be added to the cache queues.

Submitted by:	tegge
This commit is contained in:
Alan Cox 2003-08-23 20:29:29 +00:00
parent 6b312d762d
commit 529e15ed69
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119373

View File

@ -1341,7 +1341,8 @@ vm_page_cache(vm_page_t m)
int s;
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy || m->wire_count) {
if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy ||
m->hold_count || m->wire_count) {
printf("vm_page_cache: attempting to cache busy page\n");
return;
}