From owner-freebsd-current Tue Jul 9 4:56:27 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29A6C37B400; Tue, 9 Jul 2002 04:56:26 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id A74F143E42; Tue, 9 Jul 2002 04:56:25 -0700 (PDT) (envelope-from dl-freebsd@catspoiler.org) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.5/8.12.5) with ESMTP id g69BuBwr003693; Tue, 9 Jul 2002 04:56:15 -0700 (PDT) (envelope-from dl-freebsd@catspoiler.org) Message-Id: <200207091156.g69BuBwr003693@gw.catspoiler.org> Date: Tue, 9 Jul 2002 04:56:11 -0700 (PDT) From: Don Lewis Subject: /usr/src/sys/vm/uma_core.c:1332: could sleep with "kernel linker" locked from /usr/src/sys/kern/kern_linker.c:1797 To: arr@FreeBSD.org, jake@FreeBSD.org Cc: current@FreeBSD.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message