From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932419Ab2AJQua (ORCPT ); Tue, 10 Jan 2012 11:50:30 -0500 Received: from mail-pw0-f46.google.com ([209.85.160.46]:54849 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932114Ab2AJQu3 (ORCPT ); Tue, 10 Jan 2012 11:50:29 -0500 MIME-Version: 1.0 X-Originating-IP: [94.21.63.111] In-Reply-To: References: <87ipkl87m9.fsf@tucsk.pomaz.szeredi.hu> <20120109171639.GA9359@infradead.org> <20120109173010.GX23916@ZenIV.linux.org.uk> <20120109205907.GE4198@dastard> <20120110013434.GA23916@ZenIV.linux.org.uk> Date: Tue, 10 Jan 2012 17:50:28 +0100 Message-ID: Subject: Re: [RFC PATCH] shrink_dcache_parent() deadlock From: Miklos Szeredi To: Linus Torvalds Cc: Al Viro , Dave Chinner , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mgorman@suse.de, gregkh@suse.de, akpm@linux-foundation.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 10, 2012 at 5:33 PM, Linus Torvalds wrote: > Hmm. Even if they are never run in parallel, I think it would be much > nicer to do it in both, just so that there would be a conceptual > consistency of "when we remove the dentry from the LRU list and put it > on our pruning list, we set the bit". That cacheline will be dirty > anyway (due to the list move and getting the dentry lock), so setting > a bit is not expensive - but having odd inconsistent ad-hoc rules is > nasty. Makes sense. I'm testing the modified patch right now and will post shortly. Thanks, Miklos