Re: kldunload if_sk -> LOR & panic

From: Doug White <dwhite_at_gumbysoft.com>
Date: Mon, 19 Jul 2004 10:13:07 -0700 (PDT)
On Sun, 18 Jul 2004, Bjoern A. Zeeb wrote:

> > At the point where it's actually detaching, once it's detached the methods
> > that access its softc, it should drop its softc lock before calling the
> > network-level detach routines.
>
> I think this is handled by dwhite's patch so I should be safe now.
> Perhaps someone could work towards committing a cleaned up version of
> this patch ?

The LOR is the harmless part.  The panic is caused by
device_delete_child() recursing from skc to sk, and sk_detach() calls
device_delete_child() in itself again after freeing its structures (or
something like that).  My patch should fix this, if not then I have it in
my working sources.

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite_at_gumbysoft.com          |  www.FreeBSD.org
Received on Mon Jul 19 2004 - 15:13:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:02 UTC