Page MenuHomeFreeBSD

D55828.diff
No OneTemporary

D55828.diff

diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1188,7 +1188,6 @@
struct prison *pr;
struct ifnet *difp;
bool found;
- bool shutdown;
MPASS(ifindex_table[ifp->if_index].ife_ifnet == ifp);
@@ -1218,14 +1217,6 @@
}
sx_xlock(&ifnet_detach_sxlock);
- /* Make sure the VNET is stable. */
- shutdown = VNET_IS_SHUTTING_DOWN(ifp->if_vnet);
- if (shutdown) {
- sx_xunlock(&ifnet_detach_sxlock);
- prison_free(pr);
- return (EBUSY);
- }
-
found = if_unlink_ifnet(ifp, true);
if (! found) {
sx_xunlock(&ifnet_detach_sxlock);
@@ -1252,7 +1243,6 @@
struct vnet *vnet_dst;
struct ifnet *ifp;
int found __diagused;
- bool shutdown;
/* Try to find the prison within our visibility. */
sx_slock(&allprison_lock);
@@ -1280,14 +1270,6 @@
return (EEXIST);
}
- /* Make sure the VNET is stable. */
- shutdown = VNET_IS_SHUTTING_DOWN(ifp->if_vnet);
- if (shutdown) {
- CURVNET_RESTORE();
- prison_free(pr);
- return (EBUSY);
- }
-
/* Get interface back from child jail/vnet. */
found = if_unlink_ifnet(ifp, true);
MPASS(found);

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 2, 1:10 PM (1 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40083081
Default Alt Text
D55828.diff (1 KB)

Event Timeline