From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752582AbbADJgD (ORCPT ); Sun, 4 Jan 2015 04:36:03 -0500 Received: from ozlabs.org ([103.22.144.67]:59777 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbbADJgA (ORCPT ); Sun, 4 Jan 2015 04:36:00 -0500 Message-ID: <1420364152.26772.0.camel@ellerman.id.au> Subject: Re: [PATCH v2] srcu: Isolate srcu sections using CONFIG_SRCU From: Michael Ellerman To: Pranith Kumar Cc: Peter Zijlstra , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "supporter:S390" , Lai Jiangshan , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Scott Wood , Anton Blanchard , Daniel Walter , Tiejun Chen , Nishanth Aravamudan , Ingo Molnar , "Srivatsa S. Bhat" , Vincent Guittot , Li Zhong , Christian Borntraeger , Jens Freimann , "open list:LINUX FOR POWERPC..." , open list , "open list:S390" Date: Sun, 04 Jan 2015 20:35:52 +1100 In-Reply-To: References: <1419918382-4758-1-git-send-email-bobby.prani@gmail.com> <1419918382-4758-2-git-send-email-bobby.prani@gmail.com> <20141230185008.GA23965@worktop.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2014-12-30 at 13:54 -0500, Pranith Kumar wrote: > On Tue, Dec 30, 2014 at 1:50 PM, Peter Zijlstra wrote: > > On Tue, Dec 30, 2014 at 12:46:22AM -0500, Pranith Kumar wrote: > >> Isolate the SRCU functions and data structures within CONFIG_SRCU so that there > >> is a compile time failure if srcu is used when not enabled. This was decided to > >> be better than waiting until link time for a failure to occur. > > > > Why? > > This is part of the kernel tinification efforts. The first patch was > posted here: https://lkml.org/lkml/2014/12/4/848. This patch enables a > compile time failure instead of a link time failure. The punch line was: "so the savings are about ~2000 bytes." Which is utterly not worth the effort IMO. There have got to be more attractive targets for tinification than this. cheers