Held pages, just like wired pages, should not be added to the cache queues.
Submitted by: tegge
This commit is contained in:
parent
6b312d762d
commit
529e15ed69
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119373
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user