lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 7 Feb 2011 11:17:25 -0600 (CST)
From:	Christoph Lameter <cl@...ux.com>
To:	Jan Beulich <JBeulich@...ell.com>
cc:	tj@...nel.org, mingo@...e.hu, tglx@...utronix.de,
	linux-kernel@...r.kernel.org, hpa@...or.com
Subject: Re: x86: mis-named percpu_xchg_op() after switch to cmpxchg?

On Mon, 7 Feb 2011, Jan Beulich wrote:

> Other than its name implies, with the switch to use cmpxchg instead of
> xchg (commit 8270137a0d50507a5b40f880db636527045b8466) this
> macro is no longer suitable for accessing anything that may be written
> by other than the local CPU (i.e. anything but the various this_cpu
> accessors). Shouldn't it therefore get renamed to eg this_cpu_xchg_op()?

No. The intend of the percpu_xchg_op was also to provide local cpu only
semantics. percpu_xx operations in general have the same semantics as
this_cpu operations.

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ