Date: Thu, 4 Jul 2002 01:36:59 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: David Xu <davidx@viasoft.com.cn> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Timeout and SMP race Message-ID: <Pine.BSF.4.21.0207040135220.6975-100000@InterJet.elischer.org> In-Reply-To: <001101c222fa$9b32eed0$ef01a8c0@davidwnt>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207040135220.6975-100000>