From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: fs/dcache.c - BUG: soft lockup - CPU#5 stuck for 22s! [systemd-udevd:1667] Date: Fri, 30 May 2014 16:21:51 +0100 Message-ID: <20140530152151.GR18016@ZenIV.linux.org.uk> References: <20140529105107.GB1938@lahna.fi.intel.com> <20140529110439.GA2006@lahna.fi.intel.com> <20140529133036.GJ18016@ZenIV.linux.org.uk> <20140529154454.GK18016@ZenIV.linux.org.uk> <20140529162307.GL18016@ZenIV.linux.org.uk> <20140529165351.GM18016@ZenIV.linux.org.uk> <20140529185201.GN18016@ZenIV.linux.org.uk> <20140530081238.GA1957@lahna.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linus Torvalds , Linux Kernel Mailing List , Miklos Szeredi , linux-fsdevel To: Mika Westerberg Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:34193 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751374AbaE3PV4 (ORCPT ); Fri, 30 May 2014 11:21:56 -0400 Content-Disposition: inline In-Reply-To: <20140530081238.GA1957@lahna.fi.intel.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, May 30, 2014 at 11:12:38AM +0300, Mika Westerberg wrote: > Tested your latest #for-linus from here: > > https://git.kernel.org/cgit/linux/kernel/git/viro/vfs.git/log/?h=for-linus > > and the livelock is gone, > > Tested-by: Mika Westerberg > > Thanks again! OK... I've just pushed another branch (#for-linus-2) with lock_parent() change folded into the commit that used to introduce rename_lock-based variant. Heads of the branches are byte-for-byte identical: al@duke:~/linux/trees/vfs$ git log vfs/for-linus|head -1 commit ebc6cb92bfeddf25462842f64604bc9fd2aab5b0 al@duke:~/linux/trees/vfs$ git log vfs/for-linus-2|head -1 commit 8cbf74da435d1bd13dbb790f94c7ff67b2fb6af4 al@duke:~/linux/trees/vfs$ git diff ebc6cb92bfeddf25462842f64604bc9fd2aab5b0 8cbf74da435d1bd13dbb790f94c7ff67b2fb6af4 al@duke:~/linux/trees/vfs$ so testing done on one of them obviously applies to another. FWIW, on #for-linus-2 we have Shortlog: Al Viro (6): lift the "already marked killed" case into shrink_dentry_list() split dentry_kill() expand dentry_kill(dentry, 0) in shrink_dentry_list() shrink_dentry_list(): take parent's ->d_lock earlier dealing with the rest of shrink_dentry_list() livelock dentry_kill() doesn't need the second argument now Diffstat: fs/dcache.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 107 insertions(+), 46 deletions(-) Linus, how would you prefer it to be handled?