Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177850447
D58452.1795429484.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
550 B
Referenced Files
None
Subscribers
None
D58452.1795429484.diff
View Options
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -5658,6 +5658,13 @@
iflib_unregister_vlan_handlers(ctx);
iflib_netmap_detach(ifp);
+ /*
+ * A task that passed its IFC_IN_DETACH check before the flag was set
+ * can still report a link change. Drain every private task before
+ * ether_ifdetach() performs the final if_linktask drain. Drivers may
+ * register their own link-related tasks on this taskqueue.
+ */
+ taskqueue_drain_all(ctx->ifc_tq);
ether_ifdetach(ifp);
CTX_LOCK(ctx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 10:24 AM (14 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41927942
Default Alt Text
D58452.1795429484.diff (550 B)
Attached To
Mode
D58452: iflib: drain the admin task before detaching the interface
Attached
Detach File
Event Timeline