From: Ian Campbell Subject: Re: mixture of atomic and non-atomic operations on CPU masks Date: Wed, 10 Sep 2014 11:03:12 +0100 Message-ID: <1410343392.8217.285.camel@kazak.uk.xensource.com> References: <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 1XRek9-0001KC-8B for xen-devel@lists.xenproject.org; Wed, 10 Sep 2014 10:03:17 +0000 In-Reply-To: <54100FCC0200007800033118@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel , Keir Fraser , Ian Jackson , Tim Deegan List-Id: xen-devel@lists.xenproject.org On Wed, 2014-09-10 at 07:46 +0100, Jan Beulich wrote: > 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. Did that just happen by accident because the bitops are sync by default with a non-sync variant? > 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? I'm fine with that. Ian.