From owner-freebsd-net Wed Jan 8 14: 6:43 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC44837B401 for ; Wed, 8 Jan 2003 14:06:42 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11BF443ED1 for ; Wed, 8 Jan 2003 14:06:42 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.6/8.12.6) with ESMTP id h08M6eCJ008987 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 8 Jan 2003 17:06:41 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.6/8.12.6/Submit) id h08M6eHm008984; Wed, 8 Jan 2003 17:06:40 -0500 (EST) (envelope-from wollman) Date: Wed, 8 Jan 2003 17:06:40 -0500 (EST) From: Garrett Wollman Message-Id: <200301082206.h08M6eHm008984@khavrinen.lcs.mit.edu> To: Vincent Jardin Cc: net@FreeBSD.ORG Subject: Re: rt_refcnt and rtentry protection ?? In-Reply-To: <3E075B1B006D4334@mel-rta7.wanadoo.fr> (added by postmaster@wanadoo.fr) References: <0H8E00ASUXB1HW@mta5.snfc21.pbi.net> <3E075B1B006D4334@mel-rta7.wanadoo.fr> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org < said: > Why is rt_refnt decreased so early and not later ? So long as the route is marked RTF_UP, it cannot be deleted. In a single-threaded kernel, it is not possible for this code to be preempted, so there is no means by which the route flags could be changed. (RTF_UP is unset when and only when the route is deleted from the radix tree.) -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message