Re: Thread flags modified without set_thread_flag() (non atomically)

Haavard Skinnemoen
2007-03-01T10:14:57Z

On Thu, 1 Mar 2007 01:45:23 -0800
Andrew Morton <akpm@linux-foundation.org> wrote:

> If there's a lesson here, it is "don't provide #defines in the header for
> both versions".

Yes, that's true. It looks like all the other arches do the same thing
with the _TIF flags, however, so just ripping it out probably won't
work. Maybe I'll give it a try just to see how much trouble it is.

> > I don't think either of those need to be atomic though, since both of
> > them happen in monitor mode with interrupts disabled.
>
> That's true until you implement SMP ;)

True. I'm not sure what it can race against though...perhaps something
in kernel/signal.c?

Haavard