PERFORCE change 85619 for review
Todd Miller
millert at FreeBSD.org
Thu Oct 20 20:41:01 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=85619
Change 85619 by millert at millert_ibook on 2005/10/20 20:40:53
GFP_ATOMIC should really be defined as M_NOWAIT but this causes
a panic in the zone allocator from avc_init(). Make it M_WAITOK
for now and document the problem. Since sebsd_malloc() didn't
honor M_WAITOK before, this effectively changes things back to
the way they were, but hopefully in a less confusing manner.
We may need to investigate using a lower level allocator here.
Affected files ...
.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/linux-compat.h#5 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/linux-compat.h#5 (text+ko) ====
@@ -136,8 +136,9 @@
#define kmalloc(size,flags) sebsd_ss_malloc(size, flags)
#define kfree(v) sebsd_ss_free(v)
#define __get_free_page(flags) sebsd_ss_malloc(PAGE_SIZE, flags)
-#define GFP_ATOMIC M_NOWAIT
-#define GFP_KERNEL M_NOWAIT
+/* XXX - GFP_ATOMIC should be M_NOWAIT but zone alloc chokes in avc init */
+#define GFP_ATOMIC M_WAITOK
+#define GFP_KERNEL M_WAITOK
#ifdef __APPLE__
/* TBD: Skip this for now: */
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list