Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2002 11:56:38 -0800
From:      "Sam Leffler" <sam@errno.com>
To:        "Archie Cobbs" <archie@dellroad.org>, "David Rhodus" <david@uky.edu>
Cc:        "Archie Cobbs" <archie@dellroad.org>, "Kirk McKusick" <mckusick@beastie.mckusick.com>, <freebsd-current@FreeBSD.ORG>
Subject:   Re: backgroud fsck is still locking up system (fwd)
Message-ID:  <08be01c29d61$98ddb390$52557f42@errno.com>
References:  <200212061901.gB6J1pUI065085@arch20m.dellroad.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Finally, one more bit of info: I have WITNESS enabled in this kernel> and
get this message during boot:
>
>     /usr/src/sys/vm/uma_core.c:1330: could sleep with "dc0" locked from
/usr/src/sys/pci/if_dc.c:691
>

if_attach does a malloc with M_WAITOK.  If the attach happens inside a lock
in the driver's attach method (typical) then you'll get this complaint.
Fixing it, and some other similar stuff, requires some care since the code
assumes malloc will not fail.

I decided to leave it until after 5.0.

    Sam


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?08be01c29d61$98ddb390$52557f42>