Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2005 19:45:24 GMT
From:      Alan Cox <alc@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 85751 for review
Message-ID:  <200510231945.j9NJjOad029791@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=85751

Change 85751 by alc@alc_home on 2005/10/23 19:44:24

	Assert that the object containing the page and reservation is locked
	in preempt_destroy().

Affected files ...

.. //depot/projects/superpages/src/sys/vm/vm_reserve.c#3 edit

Differences ...

==== //depot/projects/superpages/src/sys/vm/vm_reserve.c#3 (text+ko) ====

@@ -564,6 +564,7 @@
 	reservation_t res;
 
 	KASSERT(m->reserv,("preempt_destroy: unexistant reservation"));
+	VM_OBJECT_LOCK_ASSERT(m->reserv->object, MA_OWNED);
 	if ((res = reserve_lazy_update(m)) != NULL)
 		preempt(res, 0, m);
 	KASSERT(!m->reserv,("preempt_destroy: reservation has not been destroyed properly"));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510231945.j9NJjOad029791>