Subject: Re: kern/30154
To: None <christos@zoulas.com>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 05/09/2005 11:38:58
hi,

> | 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.
> 
> I guess we'll need 2 in the long run...

i agree.

> What are unsafe interrupts in
> this context though? Is splsoftnet() good enough?

i think so.

it'd be better to use macros like UIDINFO_LOCK so that it can be
changed later.
(and/or revive newlock branch :-)

YAMAMOTO Takashi