From: Xiubo Li Subject: Re: BUG: ceph_inode_cachep and ceph_dentry_cachep caches are not clean when destroying Date: Wed, 19 Feb 2020 20:43:55 +0800 Message-ID: <09a76a4e-8596-87a7-94a2-53102af8e4f0@redhat.com> References: <23e2b9a7-5ff6-1f07-ff03-08abcbf1457f@redhat.com> <1efef7a514b31b731d031a788e4bc89f508343a9.camel@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from us-smtp-2.mimecast.com ([205.139.110.61]:33303 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726491AbgBSMoH (ORCPT ); Wed, 19 Feb 2020 07:44:07 -0500 In-Reply-To: <1efef7a514b31b731d031a788e4bc89f508343a9.camel@kernel.org> Content-Language: en-US Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Jeff Layton , Ilya Dryomov Cc: Patrick Donnelly , "Yan, Zheng" , Ceph Development On 2020/2/19 20:33, Jeff Layton wrote: > On Wed, 2020-02-19 at 19:29 +0800, Xiubo Li wrote: >> On 2020/2/19 19:27, Ilya Dryomov wrote: >>> On Wed, Feb 19, 2020 at 12:01 PM Xiubo Li wrote: >>>> On 2020/2/19 18:53, Ilya Dryomov wrote: >>>>> On Wed, Feb 19, 2020 at 10:39 AM Xiubo Li wrote: >>>>>> Hi Jeff, Ilya and all >>>>>> >>>>>> I hit this call traces by running some test cases when unmounting the fs >>>>>> mount points. >>>>>> >>>>>> It seems there still have some inodes or dentries are not destroyed. >>>>>> >>>>>> Will this be a problem ? Any idea ? >>>>> Hi Xiubo, >>>>> >>>>> Of course it is a problem ;) >>>>> >>>>> These are all in ceph_inode_info and ceph_dentry_info caches, but >>>>> I see traces of rbd mappings as well. Could you please share your >>>>> test cases? How are you unloading modules? >>>> I am not sure exactly in which one, mostly I was running the following >>>> commands. >>>> >>>> 1, ./bin/rbd map share -o mount_timeout=30 >>>> >>>> 2, ./bin/rbd unmap share >>>> >>>> 3, ./bin/mount.ceph :/ /mnt/cephfs/ >>>> >>>> 4, `for i in {0..1000}; do mkdir /mnt/cephfs/dir$0; done` and `for i in >>>> {0..1000}; do rm -rf /mnt/cephfs/dir$0; done` >>>> >>>> 5, umount /mnt/cephfs/ >>>> >>>> 6, rmmod ceph; rmmod rbd; rmmod libceph >>>> >>>> This it seems none business with the rbd mappings. >>> Is this on more or less plain upstream or with async unlink and >>> possibly other filesystem patches applied? >> Using the latest test branch: >> https://github.com/ceph/ceph-client/tree/testing. >> >> thanks >> > I've run a lot of tests like this and haven't see this at all. Did you > see any "Busy inodes after umount" messages in dmesg? > > I note that your kernel is tainted -- sometimes if you're plugging in > modules that have subtle ABI incompatibilities, you can end up with > memory corruption like this. > > What would be ideal would be to come up with a reliable reproducer if > possible. The code is clean from the testing branch pulled yesterday, but hit it only once locally, just encounter it in the dmesg when checking other logs. Thanks.