Subject: kmvm_malloc bug?
To: None <>
From: Gordon W. Ross <>
List: tech-kern
Date: 05/01/1994 12:40:54
It appears that m_clalloc(ncl, M_DONTWAIT) can sleep!

Here's how:
	m_clalloc(ncl=1, nowait=1)
which calls
	kmem_malloc(map, size=0x2000, canwait=0)
which calls
	vm_map_find(map, 0, 0, addr, size, find_space=TRUE)
Now this function doesn't know if it's OK to sleep or not.
First thing it does is call vm_map_lock(map) which is really
a macro to call lock_write(map) which can sleep... Panic!

The sun3 port has become inflicted with this since early April.
Does anyone know why?  (I am using NFS diskless boot.)

Gordon W. Ross			  Internet: <>
Mercury Computer Systems	Voice mail: 508-256-0052x295
199 Riverneck Road		Front desk: 508-256-1300
Chelmsford, MA 01824-2820	 Facsimile: 508-256-3599