From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp1040.oracle.com ([141.146.126.69]:45105 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752083AbcKDS2W (ORCPT ); Fri, 4 Nov 2016 14:28:22 -0400 Date: Fri, 4 Nov 2016 11:28:17 -0700 From: "Darrick J. Wong" Subject: Re: XFS deadlock while running generic/019 test Message-ID: <20161104182817.GE32036@birch.djwong.org> References: <20161104182308.GC6650@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161104182308.GC6650@quack2.suse.cz> Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Jan Kara Cc: linux-xfs@vger.kernel.org On Fri, Nov 04, 2016 at 07:23:08PM +0100, Jan Kara wrote: > Hi, > > XFS has deadlocked for me while running generic/019 test on umount. The > command is hanging in: > > [ 5429.070390] INFO: task umount:224228 blocked for more than 480 seconds. > [ 5429.088153] Tainted: G W 4.9.0-rc3-64-default+ #29 > [ 5429.105523] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > [ 5429.126043] umount D ffffffff81618c9d 0 224228 222841 0x00000000 > [ 5429.126055] ffff881197089000 0000000000000000 ffff881168dcd2c0 ffff8817da5e0480 > [ 5429.126062] ffff8817dd918480 ffffc90033c83d58 ffffffff81618c9d ffffffff810ad30a > [ 5429.126073] ffff8817dcdc0000 ffff881700000047 ffff881168dcd2c0 ffff8811a72ff840 > [ 5429.126096] Call Trace: > [ 5429.126125] [] ? __schedule+0x22d/0x6c0 > [ 5429.126144] [] ? try_to_wake_up+0x4a/0x380 > [ 5429.126155] [] schedule+0x36/0x80 > [ 5429.126271] [] xfs_ail_push_all_sync+0xac/0xf0 [xfs] > [ 5429.126285] [] ? prepare_to_wait_event+0x110/0x110 > [ 5429.126386] [] xfs_unmountfs+0x73/0x1c0 [xfs] > [ 5429.126485] [] xfs_fs_put_super+0x32/0x90 [xfs] > [ 5429.126503] [] generic_shutdown_super+0x6f/0x100 > [ 5429.126513] [] kill_block_super+0x27/0x70 > [ 5429.126523] [] deactivate_locked_super+0x43/0x70 > [ 5429.126533] [] deactivate_super+0x46/0x60 > [ 5429.126544] [] cleanup_mnt+0x3f/0x80 > [ 5429.126554] [] __cleanup_mnt+0x12/0x20 > [ 5429.126565] [] task_work_run+0x83/0xb0 > [ 5429.126575] [] exit_to_usermode_loop+0x66/0x92 > [ 5429.126586] [] syscall_return_slowpath+0x9a/0xb0 > [ 5429.126602] [] entry_SYSCALL_64_fastpath+0xa7/0xa9 > > In between these stuck messages, there are: > > [ 5443.405374] XFS (ram1): xfs_log_force: error -5 returned. > > errors. Full dmesg from the xfstest run is attached. The problem has been > triggered on XFS mounted with 'dax' mount option over 20G ramdisks. The > kernel is 4.9-rc3 + Ross' DAX PMD patches (latest series) + my ext4 iomap > conversion patches. Hmmm, I posted a patch[1] for a similar unmount hang that Dave found via generic/388. No idea if that'll fix this problem, but I suppose it's worth a shot if you can get it to reproduce quickly/consistently. (AFAIK it's still soaking in linux-next...) --D [1] https://www.spinics.net/lists/linux-xfs/msg01737.html > > Honza > -- > Jan Kara > SUSE Labs, CR