From 72b9c8c9fd33286695cd1bab67c3cf89931b0186 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Tue, 25 Nov 2003 19:52:12 +0000 Subject: [PATCH] workaround LOR in rt_setgate Reviewed by: andre Approved by: re (rwatson) --- sys/net/route.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/net/route.c b/sys/net/route.c index b625e7a52951..12c4f97c0e29 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1111,8 +1111,10 @@ rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) arg.rnh = rnh; arg.rt0 = rt; - /* XXX LOR here */ + /* XXX workaround LOR */ + RT_UNLOCK(rt); RADIX_NODE_HEAD_LOCK(rnh); + RT_LOCK(rt); rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt), rt_fixchange, &arg); RADIX_NODE_HEAD_UNLOCK(rnh);