PERFORCE change 129200 for review

Kip Macy kmacy at FreeBSD.org
Sat Nov 17 23:39:58 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=129200

Change 129200 by kmacy at kmacy:storage:toestack on 2007/11/18 07:39:14

	add missed lock around vm_page_unhold

Affected files ...

.. //depot/projects/toestack/sys/vm/vm_fault.c#5 edit

Differences ...

==== //depot/projects/toestack/sys/vm/vm_fault.c#5 (text+ko) ====

@@ -1408,11 +1408,12 @@
 			goto error;
 	} 
 	goto retry;
-
+	
+	vm_page_lock_queues();
 	for (pages = mp, va = start; va < pageslen; va += PAGE_SIZE, pages++) 
 		if (*pages)
 			vm_page_unhold(*pages);
-
+	vm_page_unlock_queues();
 	return (EFAULT);
 }
 


More information about the p4-projects mailing list