From owner-freebsd-current Wed Jul 3 18:41:13 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 CF42F37B400 for ; Wed, 3 Jul 2002 18:41:11 -0700 (PDT) Received: from mail.viasoft.com.cn (ip-167-164-97-218.anlai.com [218.97.164.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A4CC43E09 for ; Wed, 3 Jul 2002 18:41:09 -0700 (PDT) (envelope-from davidx@viasoft.com.cn) Received: from davidwnt (davidwnt.viasoft.com.cn [192.168.1.239]) by mail.viasoft.com.cn (8.9.3/8.9.3) with SMTP id JAA24749; Thu, 4 Jul 2002 09:56:59 +0800 Message-ID: <001101c222fa$9b32eed0$ef01a8c0@davidwnt> From: "David Xu" To: "Julian Elischer" Cc: References: Subject: Timeout and SMP race Date: Thu, 4 Jul 2002 09:32:05 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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=20 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=20 kern_timeout.c. =20 David Xu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message