Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753545AbaJ0OTn (ORCPT ); Mon, 27 Oct 2014 10:19:43 -0400 Received: from mail-la0-f50.google.com ([209.85.215.50]:37404 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753523AbaJ0OTl (ORCPT ); Mon, 27 Oct 2014 10:19:41 -0400 Date: Mon, 27 Oct 2014 15:19:35 +0100 From: Miklos Szeredi To: David Howells Cc: Al Viro , Linus Torvalds , Linux-Fsdevel , Kernel Mailing List , linux-unionfs@vger.kernel.org Subject: Re: Locking problem in overlayfs Message-ID: <20141027141935.GC3021@tucsk.piliscsaba.szeredi.hu> References: <5394.1414418718@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5394.1414418718@warthog.procyon.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 27, 2014 at 02:05:18PM +0000, David Howells wrote: > Using my testsuite, I see the attached moan from lockdep. Unfortunately, it > doesn't cause the testsuite to actually fail, so I'm going to have to manually > try and isolate the failing test. > > David > > ============================================= > [ INFO: possible recursive locking detected ] > 3.18.0-rc2-fsdevel+ #910 Tainted: G W > --------------------------------------------- > run/2642 is trying to acquire lock: > (&sb->s_type->i_mutex_key#10/1){+.+.+.}, at: [] ovl_cleanup_whiteouts+0x29/0xb4 > > but task is already holding lock: > (&sb->s_type->i_mutex_key#10/1){+.+.+.}, at: [] lock_rename+0xb7/0xd7 Uh-oh. We changed nesting late in the cycle and I didn't retest with lockdep. And it's actually harmless, but AFAICS needs another level of nesting between I_MUTEX_CHILD and I_MUTEX_NORMAL. Will do a patch. Thanks, Miklos -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/