Cc: Eric W. Biederman <ebiederm@...>, Pavel Machek <pavel@...>, <nigel@...>, Rafael J. Wysocki <rjw@...>, Andrew Morton <akpm@...>, Vivek Goyal <vgoyal@...>, <mingo@...>, <linux-kernel@...>, Kexec Mailing List <kexec@...>
Why do you want to do this at all?
And why do you implement your locks with xchg() in the first place? That's
total and utter crap.
Hint: we have _real_ locking primitives in the kernel.
Linus
--