diff options
author | alc <alc@FreeBSD.org> | 2002-07-28 04:23:03 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-07-28 04:23:03 +0000 |
commit | a5823502e912493a78124c84a1e2693259efa912 (patch) | |
tree | 00876ba27344e0aa31e8e041c77819ddca095b9c | |
parent | 644895c908c9829fb72d1b13544b6fe2246b1bbf (diff) | |
download | FreeBSD-src-a5823502e912493a78124c84a1e2693259efa912.zip FreeBSD-src-a5823502e912493a78124c84a1e2693259efa912.tar.gz |
o Lock page queue accesses by vm_page_free().
-rw-r--r-- | sys/vm/vm_kern.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 2377355..5fe1b1e 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -386,7 +386,9 @@ retry: i -= PAGE_SIZE; m = vm_page_lookup(kmem_object, OFF_TO_IDX(offset + i)); + vm_page_lock_queues(); vm_page_free(m); + vm_page_unlock_queues(); } vm_map_delete(map, addr, addr + size); vm_map_unlock(map); |