svn commit: r317836 - head/sys/net
Alexander Motin
mav at FreeBSD.org
Fri May 5 16:51:54 UTC 2017
Author: mav
Date: Fri May 5 16:51:53 2017
New Revision: 317836
URL: https://svnweb.freebsd.org/changeset/base/317836
Log:
Relax r317696 locking to not drain taskqueue under the lock.
MFC after: 11 days
Modified:
head/sys/net/if_lagg.c
Modified: head/sys/net/if_lagg.c
==============================================================================
--- head/sys/net/if_lagg.c Fri May 5 16:40:45 2017 (r317835)
+++ head/sys/net/if_lagg.c Fri May 5 16:51:53 2017 (r317836)
@@ -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);
More information about the svn-src-head
mailing list