[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200810061542.41224.rusty@rustcorp.com.au>
Date: Mon, 6 Oct 2008 14:42:40 +1000
From: Rusty Russell <rusty@...tcorp.com.au>
To: Heiko Carstens <heiko.carstens@...ibm.com>
Cc: jens.axboe@...cle.com, schwidefsky@...ibm.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH/RFC 0/4] Add stop_machine_get/put_threads to stop_machine infrastructrue.
On Friday 03 October 2008 20:56:32 you wrote:
> However we need to be able to do that without allocating any memory.
Nice work Heiko!
See free_module(), which calls stop_machine and, well, just hopes it works.
So we've needed this for a while.
> Patch 1 is a stop_machine bugfix and is independent of the rest
Hmm, do you actually need this? It was a whim (and clearly a dumb one). I'm
tempted to change it to:
err = smdata->fn(smdata->data);
if (err)
smdata->fnret = err;
> Patch 2 introduces the new proposed interface
Could we just encapsulate the threads etc. into a "struct stopmachine" which
is returned from stop_machine_prepare(), then implement everything in terms
of that?
Thanks,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists