Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2001 00:45:28 -0700
From:      Warner Losh <imp@harmony.village.org>
To:        Ian Dowse <iedowse@maths.tcd.ie>
Cc:        j mckitrick <jcm@FreeBSD-uk.eu.org>, Alfred Perlstein <bright@wintelcom.net>, freebsd-stable@FreeBSD.org
Subject:   Re: suspend/restore with ppp connections 
Message-ID:  <200103200745.f2K7jS913358@harmony.village.org>
In-Reply-To: Your message of "Mon, 12 Mar 2001 14:40:58 GMT." <200103121440.aa97105@salmon.maths.tcd.ie> 
References:  <200103121440.aa97105@salmon.maths.tcd.ie>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200103121440.aa97105@salmon.maths.tcd.ie> Ian Dowse writes:
: A workaround for the panic, I think, is to remove the card before
: resuming if you accidentally suspend while ppp is running.

sio's detach routine is a big hack and needs to be properly rewritten.
sc->gone will always be 0 since once detach is called, the device is
gone.  The basic problem is that there's no way to "reference count"
the device so that detach can sleep until the count goes to zero.  We
remove the device from a timeout context, which you can't sleep in.
NEWCARD might be able to correct this.

Warner


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103200745.f2K7jS913358>