Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934201AbbHDMGy (ORCPT ); Tue, 4 Aug 2015 08:06:54 -0400 Received: from smtprelay0042.hostedemail.com ([216.40.44.42]:53696 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933307AbbHDMGu (ORCPT ); Tue, 4 Aug 2015 08:06:50 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3167:3352:3622:3865:3866:3867:3868:3871:3872:3873:3874:5007:6261:6742:7875:10004:10400:10848:10967:11026:11232:11473:11658:11914:12219:12438:12517:12519:12740:13069:13311:13357:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: rub62_111e3c955326 X-Filterd-Recvd-Size: 2798 Date: Tue, 4 Aug 2015 08:06:45 -0400 From: Steven Rostedt To: Borislav Petkov Cc: Peter Zijlstra , Vlastimil Babka , linux-kernel@vger.kernel.org, mingo@kernel.org, jasonbaron0@gmail.com, luto@amacapital.net, tglx@linutronix.de, will.deacon@arm.com, liuj97@gmail.com, rabin@rab.in, ralf@linux-mips.org, ddaney@caviumnetworks.com, benh@kernel.crashing.org, michael@ellerman.id.au, heiko.carstens@de.ibm.com, davem@davemloft.net Subject: Re: [PATCH -v2 6/8] jump_label: Add a new static_key interface Message-ID: <20150804080645.0f29617d@gandalf.local.home> In-Reply-To: <20150804033733.GB31787@nazgul.tnic> References: <20150728132055.203176565@infradead.org> <20150728132313.164884020@infradead.org> <55B87E7A.2070509@suse.cz> <20150729084906.GH19282@twins.programming.kicks-ass.net> <20150803150359.0e76b576@gandalf.local.home> <20150803191816.GC25159@twins.programming.kicks-ass.net> <20150803152810.5a7bcf06@gandalf.local.home> <20150803200002.GE25159@twins.programming.kicks-ass.net> <20150803175757.2adf3275@gandalf.local.home> <20150804033733.GB31787@nazgul.tnic> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1425 Lines: 56 On Tue, 4 Aug 2015 05:37:33 +0200 Borislav Petkov wrote: > On Mon, Aug 03, 2015 at 05:57:57PM -0400, Steven Rostedt wrote: > > That's implementation details, not a general concept that users will > > need to know about. > > Why? > > It is a branch, regardless of which insn is used on which arch - it is > either active and you *branch* to that code or *inactive* and you don't. > So now it is actually what it should've been from the beginning... I just don't like the inconsistency of the initialization and the setting. Either have: DEFINE_STATIC_KEY_TRUE() DEFINE_STATIC_KEY_FALSE() and static_branch_set_true() static_branch_set_false() or have: DEFINE_STATIC_KEY_ENABLED() DEFINE_STATIC_KEY_DISABLED() and static_branch_enable() static_branch_disable() But having the DEFINE_STATIC_KEY_TRUE() and static_branch_enable() is confusing, as enable does not mean "make true"! This may seem as bike shedding, but terminology *is* important, and being inconsistent just makes it more probable to have bugs. -- Steve > > I realize simplifying the terminology around those jump labels/static > branches things comes kinda unnatural now. > -- 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/