Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp486589imm; Fri, 28 Sep 2018 01:43:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63kfVmn/9mOpjO0bx4eZNuk0Pq9UFBRrceHB1kcotlZMl8OZRAuEBQLgarfz/4goYWZUqz4 X-Received: by 2002:a17:902:8681:: with SMTP id g1-v6mr14922120plo.302.1538124186047; Fri, 28 Sep 2018 01:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538124186; cv=none; d=google.com; s=arc-20160816; b=LpFj+AoKmWeuoHkR6t7WRSUqv0IddN4jQu9ND6V0e7Y97OU5wb6TTVOGKCjcOChXlN qbAgXYnkQe1mpcYibsRqrNTWRovT8E106iws/KaIgBfjdsi+4L+YFdkM8glKMjyMj3NN hlf/qXBEdNewESw/7BgYjXfAu9kjWRGP+JbjQBNOZK12Uz04BCPLmKCVZHPvHGJPT5Ie IDjxsLaK9b3MuTcc1/4/Yql8DOxWZwDJuFy6V9I6bMqGD+tIQZaUbQ1Z+GL2Rund37QS +nk6l98rNBySLMmRm255qspi0T3X3L/cgxjd0of6Us5olGBcC6qhtr+y+8pDuXiwyi8Z 7yGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=HLQGvnavmJNNKzrGp2FqUmBYOcUHW3SICeb9bUOjXw0=; b=gvfzSsnVsQqpsIA/pDHmRKtGDgJW9CkPH+6fsfHAwdhtDxgX2W+WhwBYud4vqe9KGz tWEwpqNby3PLFezewEquToUKD4m+wMnIhSMod7JCqGW9oRzavASc4nQoRV1nEgbJiNKR zdLgqMEsKxRshIA1SJX2hY3kxsEu4levkxpyCQ3kgjVmVDlx+S9BXiw59tuxVQbpeZ3t yl21gbybtKvBqStmPJf1hPFs03EYSB2R4nXSRfkhF8QUlW262pl+WpQdy9MhVnzbfPF2 XgHV3HB6diaZF4AOJ42TOzRoXBEQUPNMT670pQJS7AD4qmIgHAK/na9hxoc/gn3UEXJM EGBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n33-v6si4252492pgm.510.2018.09.28.01.42.50; Fri, 28 Sep 2018 01:43:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729245AbeI1PFX (ORCPT + 99 others); Fri, 28 Sep 2018 11:05:23 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:53963 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728868AbeI1PFX (ORCPT ); Fri, 28 Sep 2018 11:05:23 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1g5oM9-0003gY-5v; Fri, 28 Sep 2018 10:42:37 +0200 Date: Fri, 28 Sep 2018 10:42:36 +0200 (CEST) From: Thomas Gleixner To: Martin Schwidefsky cc: Geert Uytterhoeven , Andy Lutomirski , the arch/x86 maintainers , Peter Zijlstra , Ingo Molnar , Darren Hart , Linux Kernel Mailing List , linux-s390 , Heiko Carstens , Finn Thain Subject: Re: [PATCH] futex: Set USER_DS for the futex_detect_cmpxchg() test In-Reply-To: <20180928103726.07761672@mschwideX1> Message-ID: References: <74fb6ce22f62e0fb48b91ca9918b74cedbcecaf1.1538096323.git.luto@kernel.org> <20180928103726.07761672@mschwideX1> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Sep 2018, Martin Schwidefsky wrote: > On Fri, 28 Sep 2018 09:12:10 +0200 > Geert Uytterhoeven wrote: > > I don't know if that has happened, and whether it would work on s390 now. > > commit 03b8c7b623c80af264c4c8d6111e5c6289933666 > Author: Heiko Carstens > Date: Sun Mar 2 13:09:47 2014 +0100 > > futex: Allow architectures to skip futex_atomic_cmpxchg_inatomic() test > > If an architecture has futex_atomic_cmpxchg_inatomic() implemented and there > is no runtime check necessary, allow to skip the test within futex_init(). > > This allows to get rid of some code which would always give the same result, > and also allows the compiler to optimize a couple of if statements away. > > Signed-off-by: Heiko Carstens > Cc: Finn Thain > Cc: Geert Uytterhoeven > Link: http://lkml.kernel.org/r/20140302120947.GA3641@osiris > Signed-off-by: Thomas Gleixner > > > Heiko created the CONFIG_HAVE_FUTEX_CMPXCHG to get around this issue. > We just skip the runtime check as well as arc, m68k and sh. Not sure > about xtensa, the set it config option only for !MMU. Duh. grep would have told me. -ENOTENOUGHCOFFEE Thanks, tglx