From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422689AbXDLH1j (ORCPT ); Thu, 12 Apr 2007 03:27:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422710AbXDLH1j (ORCPT ); Thu, 12 Apr 2007 03:27:39 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49535 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422689AbXDLH1i (ORCPT ); Thu, 12 Apr 2007 03:27:38 -0400 From: Neil Brown To: Christoph Lameter Date: Thu, 12 Apr 2007 17:27:33 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17949.57189.565653.289035@notabene.brown> Cc: linux-kernel@vger.kernel.org Subject: SLUB: kmem_cache_destroy doesn't X-Mailer: VM 7.19 under Emacs 21.4.1 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9Drefcount) s->refcount--; else { list_del(&s->list); WARN_ON(kmem_cache_close(s)); sysfs_slab_remove(s); kfree(s); } up_write(&slub_lock); } looks a bit odd. I would have thought the test should be: if (s->refcount > 1) ?? (2.6.21-rc6-mm1 to be precise) NeilBrown