Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755975AbZCEOu6 (ORCPT ); Thu, 5 Mar 2009 09:50:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754689AbZCEOuA (ORCPT ); Thu, 5 Mar 2009 09:50:00 -0500 Received: from smtp3.ultrahosting.com ([74.213.175.254]:45134 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754693AbZCEOt6 (ORCPT ); Thu, 5 Mar 2009 09:49:58 -0500 Date: Thu, 5 Mar 2009 09:39:03 -0500 (EST) From: Christoph Lameter X-X-Sender: cl@qirst.com To: Lai Jiangshan cc: Andrew Morton , Pekka Enberg , Nick Piggin , "Paul E. McKenney" , Manfred Spraul , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: [PATCH -mm 3/6] slub: introduce __kfree_rcu In-Reply-To: <49AF28C4.1000300@cn.fujitsu.com> Message-ID: References: <49AD343E.6010903@cn.fujitsu.com> <49AF28C4.1000300@cn.fujitsu.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 712 Lines: 17 On Thu, 5 Mar 2009, Lai Jiangshan wrote: > The first parameter of __kfree_rcu() is unused in slab,slub,slqb. > (I used it before, for CONFIG_SLUB_DEBUG=y ...etc. But I found > these debugging code is needless) > > Object sizes of the memory objects in slob's kmalloc-slab are various. > We hardly calculate the start address of the object from the rcu address. But you can start with the descriptor at the beginning of the page and scan until you find the object. -- 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/