On Mon, Oct 06, 2008 at 02:42:40PM +1000, Rusty Russell wrote:
Ah, good. At least there is one other user then :)
That looks much better than the cmpxchg loop I came up with. All we need to
know is that 'something' went wrong. Any return code != 0 should be enough.
You mean that we put the pointers to the threads, the cpu mask, etc. in this
structure, instead of wasting bss size?
That would be just a kmalloc call in __stop_machine_get_threads().
Or do you think of something different?
Anyway, I'm going to send a hopefully better patch tommorrow.
--