From 5990076d783520423f3e4ee52281b37b3482e6c2 Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 20 Apr 2003 03:41:21 +0000 Subject: - Lock the vm_object when performing vm_object_pip_add(). --- sys/vm/vm_pageout.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/vm/vm_pageout.c') diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 8c07be2..0ea8390 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -389,7 +389,9 @@ vm_pageout_flush(mc, count, flags) } object = mc[0]->object; vm_page_unlock_queues(); + VM_OBJECT_LOCK(object); vm_object_pip_add(object, count); + VM_OBJECT_UNLOCK(object); vm_pager_put_pages(object, mc, count, (flags | ((object == kernel_object) ? VM_PAGER_PUT_SYNC : 0)), -- cgit v1.1