Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753909AbaLMXjb (ORCPT ); Sat, 13 Dec 2014 18:39:31 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:58260 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753783AbaLMXja (ORCPT ); Sat, 13 Dec 2014 18:39:30 -0500 Date: Sat, 13 Dec 2014 23:39:18 +0000 From: Al Viro To: Linus Torvalds Cc: Dave Jones , Chris Mason , Mike Galbraith , Ingo Molnar , Peter Zijlstra , =?iso-8859-1?Q?D=E2niel?= Fraga , Sasha Levin , "Paul E. McKenney" , Linux Kernel Mailing List , Thomas Gleixner Subject: Re: frequent lockups in 3.18rc4 Message-ID: <20141213233918.GO22149@ZenIV.linux.org.uk> References: <1417806247.4845.1@mail.thefacebook.com> <20141211145408.GB16800@redhat.com> <20141212185454.GB4716@redhat.com> <20141213165915.GA12756@redhat.com> <20141213223616.GA22559@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Sat, Dec 13, 2014 at 02:59:43PM -0800, Linus Torvalds wrote: > Side note: I think I've found a real potential lockup bug in > fs/namespace.c, but afaik it could only trigger with the RT patches. > Except it won't with the RT patches, I guess. So it looks like you could have:\ > > - mnt_make_readonly() sets that bit > - gets preempted with the RT patches > - we run mnt_want_write() on all CPU's, which disables preemption and > waits for the bit to be cleared > - nothing happens. > > This is clearly not what happens in your lockup, but it does seem to > be a potential issue for the RT kernel. > > Added Al and Thomas to the cc, for fs/namespace.c and RT kernel > respectively. Maybe the RT patches already fix this, I didn't actually > check. I agree that it's a thing to keep in mind on the RT side of things, but IMO it belongs in RT patches... -- 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/