[CRIU] [PATCH] x86: atomic -- Adopt code from linux kernel
Cyrill Gorcunov
gorcunov at openvz.org
Fri Feb 15 09:22:42 EST 2013
On Fri, Feb 15, 2013 at 06:19:53PM +0400, Cyrill Gorcunov wrote:
> This allow us to eliminate "asm/types.h" inclusion as well, together
> with simplifying the code.
>
> The one not that simple convertable code is mutex_lock function.
> Previously we did read value and increment all in locked instruction,
> while new primitive set does it in two instructions -- lockless read
> and locked increment. This is safe to be done since the code is designed
> to spin in lockless manner.
Drop it please.
More information about the CRIU
mailing list