Don Lewis wrote: > I recently started seeing the warning message: > > /usr/src/sys/vm/uma_core.c:1332: could sleep with "kernel linker" locked > from /usr/src/sys/kern/kern_linker.c:1797 > > at boot time on my -current box. It appears to be related to the > changes in rev 1.90 of kern_linker.c. > > I suspect that memory is getting allocted inside this loop in > sysctl_kern_function_list(): > > mtx_lock(&kld_mtx); > TAILQ_FOREACH(lf, &linker_files, link) { > error = LINKER_EACH_FUNCTION_NAME(lf, > sysctl_kern_function_list_iterate, req); > if (error) { > mtx_unlock(&kld_mtx); > return (error); > } > } > mtx_unlock(&kld_mtx); > > but I got lost in a maze of twisty little passages. > > And where the heck is LINKER_EACH_FUNCTION_NAME defined? This is the > only occurence of this string in the entire /usr/src tree ...
It's defined in linker_if.h, which is a generated header, which is why you can't find it in the source tree. This macro calls a kobj function, which might call malloc(). That's why you're getting the warning. Maxime To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message