Unlock rtentry before calling for epoch(9) destruction as the destruction
may happen immediately, leading to panic. Reported by: bdragon
This commit is contained in:
parent
9a47dfc308
commit
cb86ca48bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361571
@ -411,9 +411,9 @@ rtfree(struct rtentry *rt)
|
||||
|
||||
RT_LOCK_ASSERT(rt);
|
||||
|
||||
RT_UNLOCK(rt);
|
||||
epoch_call(net_epoch_preempt, destroy_rtentry_epoch,
|
||||
&rt->rt_epoch_ctx);
|
||||
RT_UNLOCK(rt);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user