From: "Jan Beulich" Subject: mixture of atomic and non-atomic operations on CPU masks Date: Wed, 10 Sep 2014 07:46:04 +0100 Message-ID: <54100FCC0200007800033118@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XRbfM-0005KE-Uv for xen-devel@lists.xenproject.org; Wed, 10 Sep 2014 06:46:09 +0000 Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Ian Campbell , Keir Fraser , Ian Jackson , Tim Deegan List-Id: xen-devel@lists.xenproject.org All, the inconsistency here has been puzzling me for a while, and I think we ought to do something about it (perhaps not for 4.5 anymore, but then right after): cpumask_(test_and_)?(set|clear)_cpu all use the respective atomic bitops, in contrast to all other operations on cpumask_t. A good part of the users don't require the atomicity at all (in particular any of those acting on function scope variables). Does anyone know of reasons why the default shouldn't be non- atomic ops across the board, with atomic special cases being made available for the few cases where they're actually needed? Jan