From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f48.google.com (mail-qg0-f48.google.com [209.85.192.48]) by kanga.kvack.org (Postfix) with ESMTP id DDD036B0038 for ; Fri, 11 Sep 2015 10:49:33 -0400 (EDT) Received: by qgez77 with SMTP id z77so64412424qge.1 for ; Fri, 11 Sep 2015 07:49:33 -0700 (PDT) Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net. [2001:558:fe21:29:69:252:207:36]) by mx.google.com with ESMTPS id k18si608144qkl.20.2015.09.11.07.49.32 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 11 Sep 2015 07:49:33 -0700 (PDT) Date: Fri, 11 Sep 2015 09:49:31 -0500 (CDT) From: Christoph Lameter Subject: Re: slab:Fix the unexpected index mapping result of kmalloc_size(INDEX_NODE + 1) In-Reply-To: Message-ID: References: <20150729152803.67f593847050419a8696fe28@linux-foundation.org> <20150731001827.GA15029@js1304-P5Q-DELUXE> <20150807015609.GB15802@js1304-P5Q-DELUXE> <20150904132902.5d62a09077435d742d6f2f1b@linux-foundation.org> <20150907053855.GC21207@js1304-P5Q-DELUXE> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Joonsoo Kim Cc: Joonsoo Kim , Andrew Morton , liu.hailong6@zte.com.cn, Pekka Enberg , Linux Memory Management List , jiang.xuexin@zte.com.cn, David Rientjes On Fri, 11 Sep 2015, Joonsoo Kim wrote: > So, when we initialize 96, 192 or 8, proper slab isn't initialized. > If we allow debug_pagealloc larger than 256 sized slab, > small sized slab would be already initialized so no error > happens. I think it is better than > kmalloc_size(INDEX_NODE) * 2, because that doesn't > guarantee size is larger than 192. Sounds good. Please send a patch. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org