Re: [PATCH] WorkStruct: Implement generic UP cmpxchg() where an arch doesn't support it

Linus Torvalds
2006-12-06T19:57:43Z

On Wed, 6 Dec 2006, Linus Torvalds wrote:
>
> Your problem will be, of course, that any architecture that does this in
> hardware will just DoTheRightThing, and as such, broken architectures with
> bad locking primitives will have to test and do source-level analysis
> more.

(The underlying thread here being that the workqueue stuff _should_ be
safe in this regard. But the "testing will not catch bugs like these is
certainly true in general)

Linus