From owner-freebsd-current Thu Jul 4 1:40:19 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 259F037B405 for ; Thu, 4 Jul 2002 01:40:12 -0700 (PDT) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84B0A43E42 for ; Thu, 4 Jul 2002 01:40:11 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020704084011.HGFM24728.rwcrmhc51.attbi.com@InterJet.elischer.org>; Thu, 4 Jul 2002 08:40:11 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id BAA07015; Thu, 4 Jul 2002 01:37:01 -0700 (PDT) Date: Thu, 4 Jul 2002 01:36:59 -0700 (PDT) From: Julian Elischer To: David Xu Cc: freebsd-current@FreeBSD.ORG Subject: Re: Timeout and SMP race In-Reply-To: <001101c222fa$9b32eed0$ef01a8c0@davidwnt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 4 Jul 2002, David Xu wrote: > while we are getting rid of Giant, current race condition between softclock() > and callout_stop() is unacceptable. the race causes two many places in source > code would be modified to fit this new behaviour, besides this, everywhere > callout_stop() is used need to hold sched_lock and do a mi_switch() and > modify td_flags is also unacceptable, this SMP race should be resolved in > kern_timeout.c. > > David Xu This is probably true.. the current hacks for this are rather horrible. I think there msut be better ways. Your suggestion sounds plausible. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message