Maksim Yevmenkin 8a03cf5c82 Reorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()
are called outside of AN_LOCK()/AN_UNLOCK. This fixes the following
WITNESS warning (produced when an(4) PCMCIA card is detached).

taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex an0 (network driver) r = 0 (0xc59af168) locked @ /usr/src/sys/dev/an/if_an.c:2836

MFC after:	3 days
Silence from:	current@
2005-07-27 21:03:35 +00:00
..
2005-06-28 09:06:52 +00:00
2005-05-10 12:02:18 +00:00
2005-07-11 02:33:25 +00:00
2005-05-14 10:26:31 +00:00
2005-04-04 17:37:35 +00:00
2005-05-19 21:16:50 +00:00
2005-04-08 05:22:58 +00:00
2005-02-27 22:01:09 +00:00
2005-07-18 23:41:34 +00:00
2005-06-12 16:21:44 +00:00
2005-07-07 01:05:45 +00:00