From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030962AbXDXAel (ORCPT ); Mon, 23 Apr 2007 20:34:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030964AbXDXAel (ORCPT ); Mon, 23 Apr 2007 20:34:41 -0400 Received: from ns2.suse.de ([195.135.220.15]:41363 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030962AbXDXAek (ORCPT ); Mon, 23 Apr 2007 20:34:40 -0400 From: Neil Brown To: Christoph Lameter Date: Tue, 24 Apr 2007 10:34:31 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17965.20631.736307.24491@notabene.brown> Cc: linux-kernel@vger.kernel.org Subject: Re: SLUB: kmem_cache_destroy doesn't - version 2. In-Reply-To: message from Christoph Lameter on Monday April 23 References: <17960.16739.870487.497750@notabene.brown> <17960.20796.761309.771912@notabene.brown> <17964.21972.961812.744601@notabene.brown> X-Mailer: VM 7.19 under Emacs 21.4.1 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D Would this work? Contains a solution somewhat along the lines of your > thoughts on the subject. > Concept seems sound. Code needs a kfree of the name returned by create_unique_id, and I think ID_STR_LENGTH needs to be at least 34. Maybe that should be allocated on the stack in sysfs_slab_add, rather than using kmalloc/free. Thanks, NeilBrown