From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755174AbcH1AkP (ORCPT ); Sat, 27 Aug 2016 20:40:15 -0400 Received: from smtprelay0203.hostedemail.com ([216.40.44.203]:33446 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753488AbcH1AkN (ORCPT ); Sat, 27 Aug 2016 20:40:13 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1042:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3873:3874:4321:5007:7903:8603:10004:10128:10400:10848:11026:11232:11658:11914:12296:12740:13069:13311:13357:13439:14096:14097:14659:14721:21080:21433:21451:30012:30054:30064:30091,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:error,Custom_rules:0:0:0,LFtime:2000,LUA_SUMMARY:none X-HE-Tag: pies84_759c6f7e67a26 X-Filterd-Recvd-Size: 2015 Message-ID: <1472344806.26978.30.camel@perches.com> Subject: Re: [PATCH 1/5] IA64-IRQ: Use kmalloc_array() in sn_irq_lh_init() From: Joe Perches To: SF Markus Elfring Cc: Julia Lawall , linux-ia64@vger.kernel.org, Fenghua Yu , Tony Luck , LKML , kernel-janitors@vger.kernel.org, Paolo Bonzini Date: Sat, 27 Aug 2016 17:40:06 -0700 In-Reply-To: <894bf885-4cf0-fcaa-e040-35d9add64acc@users.sourceforge.net> References: <349bbfb4-bada-628e-2981-ca2a315299fc@users.sourceforge.net> <2e046b40-1c8e-717f-68b1-534c3125724c@users.sourceforge.net> <1472245341.4914.79.camel@perches.com> <894bf885-4cf0-fcaa-e040-35d9add64acc@users.sourceforge.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu3 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 Sat, 2016-08-27 at 09:02 +0200, SF Markus Elfring wrote: > > If you _really wanted to clear up this code and make it more > > robust/better, it'd probably be nicer to convert the > > struct list_head **sn_irq_lh to a single struct list_head * > > That would be less data space overall given the alignment > > waste of the individual allocs. > Does this suggestion mean that I should drop my proposal > around the software components "IRQ" and "TLB" for the system > architecture "IA64" in such a questionable patch series? While elimination of code duplication should be good, what it means it you should avoid making changes that are merely mechanical and strive to make changes that improve code execution speed or reduce overall object size while not impacting overall execution speed.