From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756058AbYLJUMT (ORCPT ); Wed, 10 Dec 2008 15:12:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753766AbYLJUME (ORCPT ); Wed, 10 Dec 2008 15:12:04 -0500 Received: from nlpi053.sbcis.sbc.com ([207.115.36.82]:55374 "EHLO nlpi053.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753509AbYLJUMD (ORCPT ); Wed, 10 Dec 2008 15:12:03 -0500 Date: Wed, 10 Dec 2008 14:11:23 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@quilx.com To: Cyrill Gorcunov cc: Catalin Marinas , linux-kernel@vger.kernel.org, Matt Mackall , Pekka Enberg Subject: Re: [PATCH] Do not pass the SLAB flags as GFP in slob kmem_cache_create In-Reply-To: <20081210193421.GA2215@localhost> Message-ID: References: <20081210173632.19697.67688.stgit@pc1117.cambridge.arm.com> <20081210193421.GA2215@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -2.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Dec 2008, Cyrill Gorcunov wrote: > this would make the following line in slob_alloc > > ... > if (unlikely((gfp & __GFP_ZERO) && b)) > memset(b, 0, size); > ... > > useless. Not sure if it will be good :) No. GFP_ZERO is set when kmalloc etc is called. Its not set on kmem_cache_create.