From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id CBBF51A018F for ; Sun, 4 Jan 2015 20:35:56 +1100 (AEDT) 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 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" Mime-Version: 1.0 Cc: Peter Zijlstra , Heiko Carstens , Tiejun Chen , Paul Mackerras , Daniel Walter , Ingo Molnar , "open list:S390" , Vincent Guittot , Christian Borntraeger , Jens Freimann , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Anton Blanchard , Scott Wood , Lai Jiangshan , Li Zhong , Nishanth Aravamudan , open list , "Srivatsa S. Bhat" , Martin Schwidefsky , "supporter:S390" , "open list:LINUX FOR POWERPC..." List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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