Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753486AbcC1OF5 (ORCPT ); Mon, 28 Mar 2016 10:05:57 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:16941 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751212AbcC1OFy (ORCPT ); Mon, 28 Mar 2016 10:05:54 -0400 Subject: Re: btrfs_destroy_inode WARN_ON. To: Markus Trippelsdorf , Dave Jones , Linux Kernel , Chris Mason , David Sterba , References: <20160324225411.GA1612@codemonkey.org.uk> <20160325082526.GA314@x4> From: Josef Bacik Message-ID: <56F93A1B.2060701@fb.com> Date: Mon, 28 Mar 2016 10:05:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160325082526.GA314@x4> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.54.13] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-03-28_10:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3456 Lines: 63 On 03/25/2016 04:25 AM, Markus Trippelsdorf wrote: > On 2016.03.24 at 18:54 -0400, Dave Jones wrote: >> Just hit this on a tree from earlier this morning, v4.5-11140 or so. >> >> WARNING: CPU: 2 PID: 32570 at fs/btrfs/inode.c:9261 btrfs_destroy_inode+0x389/0x3f0 [btrfs] >> CPU: 2 PID: 32570 Comm: rm Not tainted 4.5.0-think+ #14 >> ffffffffc039baf9 00000000ef721ef0 ffff88025966fc08 ffffffff8957bcdb >> 0000000000000000 0000000000000000 ffff88025966fc50 ffffffff890b41f1 >> ffff88045d918040 0000242d4eed6048 ffff88024eed6048 ffff88024eed6048 >> Call Trace: >> [] ? btrfs_destroy_inode+0x389/0x3f0 [btrfs] >> [] dump_stack+0x68/0x9d >> [] __warn+0x111/0x130 >> [] warn_slowpath_null+0x1d/0x20 >> [] btrfs_destroy_inode+0x389/0x3f0 [btrfs] >> [] destroy_inode+0x67/0x90 >> [] evict+0x1b7/0x240 >> [] iput+0x3ae/0x4e0 >> [] ? dput+0x20e/0x460 >> [] do_unlinkat+0x256/0x440 >> [] ? do_rmdir+0x350/0x350 >> [] ? syscall_trace_enter_phase1+0x87/0x260 >> [] ? enter_from_user_mode+0x50/0x50 >> [] ? __lock_is_held+0x25/0xd0 >> [] ? mark_held_locks+0x22/0xc0 >> [] ? syscall_trace_enter_phase2+0x12d/0x3d0 >> [] ? SyS_rmdir+0x20/0x20 >> [] SyS_unlinkat+0x1b/0x30 >> [] do_syscall_64+0xf4/0x240 >> [] entry_SYSCALL64_slow_path+0x25/0x25 >> ---[ end trace a48ce4e6a1b5e409 ]--- >> >> >> That's WARN_ON(BTRFS_I(inode)->csum_bytes); >> >> *maybe* it's a bad disk, but there's no indication in dmesg of anything awry. >> Spinning rust on SATA, nothing special. > > Same thing here: > > Mar 24 10:37:27 x4 kernel: ------------[ cut here ]------------ > Mar 24 10:37:27 x4 kernel: WARNING: CPU: 3 PID: 11838 at fs/btrfs/inode.c:9261 btrfs_destroy_inode+0x22b/0x2a0 > Mar 24 10:37:27 x4 kernel: CPU: 3 PID: 11838 Comm: rm Not tainted 4.5.0-11787-ga24e3d414e59-dirty #64 > Mar 24 10:37:27 x4 kernel: Hardware name: System manufacturer System Product Name/M4A78T-E, BIOS 3503 04/13/2011 > Mar 24 10:37:27 x4 kernel: 0000000000000000 ffffffff813c0d1a ffffffff81b8bb84 ffffffff812ffd0b > Mar 24 10:37:27 x4 kernel: ffffffff81099a9a 0000000000000000 ffff880149b86088 ffff88021585f000 > Mar 24 10:37:27 x4 kernel: ffffffff812ffd0b 0000000000000000 ffff88005f526000 0000000000000000 > Mar 24 10:37:27 x4 kernel: Call Trace: > Mar 24 10:37:27 x4 kernel: [] ? dump_stack+0x46/0x6c > Mar 24 10:37:27 x4 kernel: [] ? btrfs_destroy_inode+0x22b/0x2a0 > Mar 24 10:37:27 x4 kernel: [] ? warn_slowpath_null+0x5a/0xe0 > Mar 24 10:37:27 x4 kernel: [] ? btrfs_destroy_inode+0x22b/0x2a0 > Mar 24 10:37:27 x4 kernel: [] ? do_unlinkat+0x13c/0x3e0 > Mar 24 10:37:27 x4 kernel: [] ? entry_SYSCALL_64_fastpath+0x13/0x8f > Mar 24 10:37:27 x4 kernel: ---[ end trace e9bae5be848e7a9e ]--- > I saw this running some xfstests on our internal kernels but haven't been able to reproduce it on my latest enospc work (which is obviously perfect). What were you doing when you tripped this? I'd like to see if I actually did fix it or if I still need to run it down. Thanks, Josef