Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753400AbbFJEsC (ORCPT ); Wed, 10 Jun 2015 00:48:02 -0400 Received: from smtprelay0138.hostedemail.com ([216.40.44.138]:55715 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751401AbbFJErz (ORCPT ); Wed, 10 Jun 2015 00:47:55 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3872:3874:4321:5007:6119:6261:7903:7974:8660:10004:10400:10848:10967:11026:11232:11658:11914:12043:12517:12519:12740:13069:13148:13230:13255:13311:13357: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: van99_61d6ce70ab400 X-Filterd-Recvd-Size: 2198 Message-ID: <1433911671.2730.102.camel@perches.com> Subject: Re: [RFC][PATCH 0/5] do not dereference NULL pools in pools' destroy() functions From: Joe Perches To: Andrew Morton Cc: Christoph Lameter , Sergey Senozhatsky , Minchan Kim , Pekka Enberg , Joonsoo Kim , Michal Hocko , David Rientjes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, sergey.senozhatsky.work@gmail.com Date: Tue, 09 Jun 2015 21:47:51 -0700 In-Reply-To: <20150609191755.867a36c3.akpm@linux-foundation.org> References: <1433851493-23685-1-git-send-email-sergey.senozhatsky@gmail.com> <20150609142523.b717dba6033ee08de997c8be@linux-foundation.org> <20150609185150.8c9fed8d.akpm@linux-foundation.org> <20150609191755.867a36c3.akpm@linux-foundation.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-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 Content-Length: 995 Lines: 27 On Tue, 2015-06-09 at 19:17 -0700, Andrew Morton wrote: > On Tue, 9 Jun 2015 21:00:58 -0500 (CDT) Christoph Lameter wrote: > > On Tue, 9 Jun 2015, Andrew Morton wrote: > > > > Why do this at all? > > Did some grepping and I did see some call sites that do this but the > > majority has to do other processing as well. > > > > 200 call sites? Do we have that many uses of caches? Typical prod system > > have ~190 caches active and the merging brings that down to half of that. > I didn't try terribly hard. > z:/usr/src/linux-4.1-rc7> grep -r -C1 kmem_cache_destroy . | grep "if [(]" | wc -l > 158 > > It's a lot, anyway. Yeah. $ git grep -E -B1 -w "(kmem_cache|mempool|dma_pool)_destroy" *| \ grep -P "\bif\s*\(" | wc -l 268 -- 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/