Date: Wed, 30 Mar 2016 08:00:43 -0700 From: Adrian Chadd <adrian.chadd@gmail.com> To: Hans Petter Selasky <hps@selasky.org> Cc: Andriy Voskoboinyk <s3erios@gmail.com>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Aleksander Alekseev <mail@eax.me> Subject: Re: I need a little help in fixing `exclusive sleep mutex urtwn0_com_lock` in CURRENT Message-ID: <CAJ-Vmon=s-uKMhzgRm--DttXJ8_x_cAKnpALu4UeLOdQQ9nXpw@mail.gmail.com> In-Reply-To: <56FBBC62.6040905@selasky.org> References: <20160330123048.3361a9e4@fujitsu> <op.ye4x9fosiew4ia@localhost> <56FBBC62.6040905@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
We really need some kind of device refcounting for things that be hotplugged (ie, most things these days) so we don't end up freeing driver state before all the driver / stack entry points are done. For net80211 drivers, they need to (a) not finish detach until all entry points are done, and (b) this includes ioctls and net80211 entry points, as net80211 may be doing something with the ic (eg an ioctl, etc) that hasn't yet finished. So yeah, it's not /just/ draining taskqueues, it's actually "we need an actual device lifecycle management thing". -adrian On 30 March 2016 at 04:45, Hans Petter Selasky <hps@selasky.org> wrote: > On 03/30/16 13:30, Andriy Voskoboinyk wrote: >> >> Wed, 30 Mar 2016 12:30:48 +0300 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Aleksander Alekseev >> <mail@eax.me>: >> >>> and then pull Wi-Fi adapter out of USB >> >> >> Here (it's not the only driver which does detach incorrectly). > > > Is this something which you can fix? > > --HPS > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= "
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmon=s-uKMhzgRm--DttXJ8_x_cAKnpALu4UeLOdQQ9nXpw>