Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2017 16:51:53 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317836 - head/sys/net
Message-ID:  <201705051651.v45GprKd053618@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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