From owner-freebsd-net Wed Jan 8 14:12:27 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 BCE3637B401 for ; Wed, 8 Jan 2003 14:12:26 -0800 (PST) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 754ED43E4A for ; Wed, 8 Jan 2003 14:12:26 -0800 (PST) (envelope-from hsu@FreeBSD.org) Received: from FreeBSD.org ([63.193.112.125]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id <0H8F008W01OPKT@mta7.pltn13.pbi.net> for net@freebsd.org; Wed, 08 Jan 2003 14:12:26 -0800 (PST) Date: Wed, 08 Jan 2003 14:12:44 -0800 From: Jeffrey Hsu Subject: Re: rt_refcnt and rtentry protection ?? In-reply-to: Message from Vincent Jardin "of Wed, 08 Jan 2003 23:22:22 +0100." <3E075B1B006D4334@mel-rta7.wanadoo.fr> To: Vincent Jardin Cc: net@freebsd.org Message-id: <0H8F008W11OPKT@mta7.pltn13.pbi.net> MIME-version: 1.0 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT 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 if (rt->rt_flags & RTF_GATEWAY) /* XXX How can we be sure that rt won't be freeed by any other kernel thread now ?? XXX */ > Why is rt_refnt decreased so early and not later ? In the non-SMP kernel, the kernel can't be preempted so another thread can't run. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message