From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751731AbdCYSUp (ORCPT ); Sat, 25 Mar 2017 14:20:45 -0400 Received: from merlin.infradead.org ([205.233.59.134]:39236 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbdCYSUn (ORCPT ); Sat, 25 Mar 2017 14:20:43 -0400 Date: Sat, 25 Mar 2017 19:20:23 +0100 From: Peter Zijlstra To: Linus Torvalds Cc: Andy Lutomirski , Dmitry Vyukov , Andrew Morton , Andy Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Josh Poimboeuf , Paul McKenney , Thomas Gleixner , Ingo Molnar , LKML Subject: Re: locking/atomic: Introduce atomic_try_cmpxchg() Message-ID: <20170325182023.qfnj6vaixibbgbmd@hirez.programming.kicks-ass.net> References: <20170324142140.vpyzl755oj6rb5qv@hirez.programming.kicks-ass.net> <20170324164108.ibcxxqbhvx6ao54r@hirez.programming.kicks-ass.net> <20170324172342.radlrhk2z6mwmdgk@hirez.programming.kicks-ass.net> <20170324212329.GC5680@worktop> <20170325075156.GF32474@worktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 25, 2017 at 11:00:44AM -0700, Linus Torvalds wrote: > On Sat, Mar 25, 2017 at 12:51 AM, Peter Zijlstra wrote: > > On Fri, Mar 24, 2017 at 10:23:29PM +0100, Peter Zijlstra wrote: > > > >> I'll try and redo the patches that landed in tip and see what it does > >> for total vmlinux size somewhere tomorrow. > > > > text data bss dec hex filename > > 10726413 4540256 843776 16110445 f5d36d defconfig-build/vmlinux.pre > > 10730509 4540256 843776 16114541 f5e36d defconfig-build/vmlinux.post 10730445 4540256 843776 16114477 f5e32d defconfig-build/vmlinux > > > > :-( > > Hmm. But you are comparing against the *broken* version that did the > unconditional store of the result. Well, only broken if not used on stack local variables, but yes. > You should at least compare against the fixed version with the > conditional store. That's the one that was hard to get good code > generation from, wasn't it? Added above, a few bytes smaller than the shiny new one actually.