NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/40384 (64 bit time_t broke wscons)
hi,
> On Jan 14, 11:48am, yamt%mwd.biglobe.ne.jp@localhost (YAMAMOTO Takashi) wrote:
> -- Subject: Re: kern/40384 (64 bit time_t broke wscons)
>
> | hi,
> |
> | > Synopsis: 64 bit time_t broke wscons
> | >
> | > State-Changed-From-To: open->closed
> | > State-Changed-By: christos%NetBSD.org@localhost
> | > State-Changed-When: Tue, 13 Jan 2009 14:01:19 -0500
> | > State-Changed-Why:
> | > fixed, thanks
> |
> | thanks for a quick fix.
> | won't it be confused by concurrent operations?
> | eg. concurrent SETVERSION ioctls
> | i think that it's better to always use the new version for
> | in-kernel structures and do conversion when doing copyin/out.
>
> Each setversion flushes the queue. I thought about doing it the way you
> suggest, but it makes the code more complicated. I think that for the
> most part there will be one setversion per open or none.
>
> christos
it flushes the queue, yes. but it seems unsafe to me.
eg. if malloc() sleeps.
eg. if someone is in the middle of wsevent_read().
necessary locking complicates the code more, i guess.
YAMAMOTO Takashi
Home |
Main Index |
Thread Index |
Old Index