From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031001AbXDXAug (ORCPT ); Mon, 23 Apr 2007 20:50:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1031002AbXDXAug (ORCPT ); Mon, 23 Apr 2007 20:50:36 -0400 Received: from mail.suse.de ([195.135.220.2]:50605 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031001AbXDXAuf (ORCPT ); Mon, 23 Apr 2007 20:50:35 -0400 From: Neil Brown To: Christoph Lameter Date: Tue, 24 Apr 2007 10:50:25 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17965.21585.915947.810173@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> <17965.20631.736307.24491@notabene.brown> X-Mailer: VM 7.19 under Emacs 21.4.1 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D On Tue, 24 Apr 2007, Neil Brown wrote: > > > On Monday April 23, clameter@sgi.com wrote: > > > 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. > > Sysfs copies the string? kobject_set_name copies the string, either into a small char array in the kobject, or into kmalloced space. kobject_set_name actually takes a format and arbitrary args and uses vsnprintf, so it has to make it's own copy. NeilBrown