Subject: Re: kern/30154
To: None <christos@zoulas.com>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 05/09/2005 10:58:21
> | i think that now you have the same problem for ui_slock.
>
> Well, if we don't lock then there is a problem with getting inconsistent
> values. How should we fix this? Defer it until later?
yes, it's a possible solution.
alternatives are:
1. block unsafe interrupts when grabbing the lock.
2. use atomic operations. (needs to introduce MD/MI interface)
i think #1 is the easiest.
YAMAMOTO Takashi