Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2008 00:00:44 -0500
From:      "Alan Cox" <alan.l.cox@gmail.com>
To:        "Giorgos Keramidas" <keramida@ceid.upatras.gr>
Cc:        current@freebsd.org
Subject:   Re: repeated panics in vm_reserv_alloc_page()
Message-ID:  <ca3526250805132200t5c69090ew311fbaf6ed33d190@mail.gmail.com>
In-Reply-To: <87ve1iqbn7.fsf@kobe.laptop>
References:  <87ve1iqbn7.fsf@kobe.laptop>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Please let me know if the attached patch eliminates your panics.

Regards,
Alan

[-- Attachment #2 --]
Index: vm/vm_page.c
===================================================================
RCS file: /home/ncvs/src/sys/vm/vm_page.c,v
retrieving revision 1.369
diff -p -u -r1.369 vm_page.c
--- vm/vm_page.c	6 Apr 2008 18:09:28 -0000	1.369
+++ vm/vm_page.c	14 May 2008 04:40:59 -0000
@@ -1063,7 +1063,7 @@ vm_page_alloc(vm_object_t object, vm_pin
 			mtx_unlock(&vm_page_queue_free_mtx);
 			return (NULL);
 #if VM_NRESERVLEVEL > 0
-		} else if (object == NULL ||
+		} else if (object == NULL || object->type == OBJT_DEVICE ||
 		    (object->flags & OBJ_COLORED) == 0 ||
 		    (m = vm_reserv_alloc_page(object, pindex)) == NULL) {
 #else
help

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