From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752926Ab1ASGxN (ORCPT ); Wed, 19 Jan 2011 01:53:13 -0500 Received: from cpoproxy1-pub.bluehost.com ([69.89.21.11]:52315 "HELO cpoproxy1-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752012Ab1ASGxK (ORCPT ); Wed, 19 Jan 2011 01:53:10 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=tao.ma; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=Fn6V64hzg+r4dB5LW11VNagIYNIYHAGOaGNzoNfTkrx3bqHRmsEeYn6v9u/YT8mO25LKi0TNP0apGTMV/2HUpeab+iDJNShch/Ep9EYZf+twpNP8/O5omHTdK3fz9IKD; Message-ID: <4D368A70.5030103@tao.ma> Date: Wed, 19 Jan 2011 14:53:36 +0800 From: Tao Ma User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: npiggin@gmail.com, Linux Kernel , linux-ext4@vger.kernel.org, Theodore Tso Subject: 38-rc1: umount+rmmod cause ext4 error. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1390:box585.bluehost.com:colyli:tao.ma} {sentby:smtp auth 114.251.86.0 authed with tm@tao.ma} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nick and Ted, I ran some very basic test with 38-rc1 and my box run into error with the message like: slab error in kmem_cache_destroy(): cache `ext4_inode_cache': Can't free all objects Pid: 4395, comm: rmmod Not tainted 2.6.38-rc1 #1 Call Trace: [] ? kmem_cache_destroy+0x83/0xc7 [] ? destroy_inodecache+0x15/0x17 [ext4] [] ? ext4_exit_fs+0x109/0x143 [ext4] [] ? put_online_cpus+0x56/0x58 [] ? module_refcount+0x85/0x9d [] ? sys_delete_module+0x1b5/0x218 [] ? audit_syscall_entry+0x187/0x1ba [] ? system_call_fastpath+0x16/0x1b SLAB: cache with size 888 has lost its name SLAB: cache with size 888 has lost its name SLAB: cache with size 888 has lost its name SLAB: cache with size 888 has lost its name The reproduce process is simple:just rmmod ext4 immediately after umount an ext4 volume. I have done some very simple investigation and it seems that with Nick's new ext4_i_callback, even after we do ext4_destroy_inode, it isn't freed. So after we destroy the ext_inode_cache, and when freeing the inode, it errors. Hope it helps. If you have any fixes, I can test it. Regards, Tao