Page MenuHomeFreeBSD

D31642.diff
No OneTemporary

D31642.diff

diff --git a/sys/net/altq/altq_rmclass.c b/sys/net/altq/altq_rmclass.c
--- a/sys/net/altq/altq_rmclass.c
+++ b/sys/net/altq/altq_rmclass.c
@@ -1554,10 +1554,13 @@
{
struct rm_class *cl = arg;
struct rm_ifdat *ifd = cl->ifdat_;
+ struct epoch_tracker et;
int s;
s = splnet();
+ NET_EPOCH_ENTER(et);
IFQ_LOCK(ifd->ifq_);
+ CURVNET_SET(ifd->ifq_->altq_ifp->if_vnet);
if (cl->sleeping_) {
cl->sleeping_ = 0;
cl->undertime_.tv_sec = 0;
@@ -1567,7 +1570,9 @@
(ifd->restart)(ifd->ifq_);
}
}
+ CURVNET_RESTORE();
IFQ_UNLOCK(ifd->ifq_);
+ NET_EPOCH_EXIT(et);
splx(s);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 7:24 AM (22 h, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14506718
Default Alt Text
D31642.diff (601 B)

Event Timeline