Re: [PATCH/RFC 0/4] Add stop_machine_get/put_threads to stop_machine infrastructrue.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Heiko Carstens
Date: Monday, October 6, 2008 - 1:16 pm

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.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH/RFC 0/4] Add stop_machine_get/put_threads to st ..., Heiko Carstens, (Mon Oct 6, 1:16 pm)