Thread (4 messages) 4 messages, 2 authors, 2011-05-03

Re: [PATCH] powerpc: Add Initiate Coprocessor Store Word (icswx) support

flat view

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2011-05-03 08:57:36

On Tue, 2011-05-03 at 16:55 +1000, Anton Blanchard wrote:
Hi Ben,
quoted
My only comment (sorry Anton :-) would have been that we could lazily
allocate the spinlock on the first use_cop() ... or do we have that
potentially called in the wrong context ?
I worry what might happen in a threaded app. It would be a strange
thing to do, but the program may call use_cop from two threads at the
same time. In that case you could corrupt the PID/ACOP values
and leak a spinlock of memory I think.
OK, it's a bit nasty to solve. I'll put the latest patch in my queue and
if all goes well, it should hit next by the end of the week.

Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help