Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932300AbbHGPfV (ORCPT ); Fri, 7 Aug 2015 11:35:21 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35486 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932104AbbHGPfT (ORCPT ); Fri, 7 Aug 2015 11:35:19 -0400 Message-ID: <55C4D02A.5000902@synopsys.com> Date: Fri, 07 Aug 2015 21:05:06 +0530 From: Vineet Gupta Organization: Synopsys User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Peter Zijlstra CC: Oleg Nesterov , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] coredump: Replace opencoded set_mask_bits() References: <1438935406-5762-1-git-send-email-vgupta@synopsys.com> <20150807115710.GA16897@redhat.com> <55C4C433.5000501@synopsys.com> <20150807145737.GL16853@twins.programming.kicks-ass.net> In-Reply-To: <20150807145737.GL16853@twins.programming.kicks-ass.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 798 Lines: 22 On Friday 07 August 2015 08:27 PM, Peter Zijlstra wrote: > On Fri, Aug 07, 2015 at 08:14:03PM +0530, Vineet Gupta wrote: > >> > See, I have such a cmpxchg loop in ARC code - originally from Peter :-) >> > arch/arc/kernel/smp.c. @ipi_data_ptr is NOT atomic_t >> > >> > do { >> > new = old = ACCESS_ONCE(*ipi_data_ptr); >> > new |= 1U << msg; >> > } while (cmpxchg(ipi_data_ptr, old, new) != old); >> > > Well, you'll have atomic_or() real soon now. Doesn't help my cause - ipi_data_ptr is not atomic_t - hence my prev question in this thread -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/