1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Relax r317696 locking to not drain taskqueue under the lock.

MFC after:	11 days
This commit is contained in:
Alexander Motin 2017-05-05 16:51:53 +00:00
parent 45801499b2
commit bbfc32a6b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317836

View File

@ -553,6 +553,7 @@ lagg_clone_destroy(struct ifnet *ifp)
LAGG_WLOCK(sc);
lagg_proto_detach(sc);
LAGG_UNLOCK_ASSERT(sc);
LAGG_XUNLOCK(sc);
ifmedia_removeall(&sc->sc_media);
ether_ifdetach(ifp);
@ -561,7 +562,6 @@ lagg_clone_destroy(struct ifnet *ifp)
LAGG_LIST_LOCK();
SLIST_REMOVE(&V_lagg_list, sc, lagg_softc, sc_entries);
LAGG_LIST_UNLOCK();
LAGG_XUNLOCK(sc);
LAGG_SX_DESTROY(sc);
LAGG_LOCK_DESTROY(sc);