From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751179Ab1GRXRq (ORCPT ); Mon, 18 Jul 2011 19:17:46 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:60394 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829Ab1GRXRo (ORCPT ); Mon, 18 Jul 2011 19:17:44 -0400 Date: Tue, 19 Jul 2011 00:17:38 +0100 From: Al Viro To: Hugh Dickins Cc: Linus Torvalds , Andrew Morton , Nick Piggin , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] vfs: fix race in rcu lookup of pruned dentry Message-ID: <20110718231738.GJ11013@ZenIV.linux.org.uk> References: <20110718020818.GW11013@ZenIV.linux.org.uk> <20110718194703.GI11013@ZenIV.linux.org.uk> 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 Mon, Jul 18, 2011 at 03:43:29PM -0700, Hugh Dickins wrote: > Yes, that looks like THE right fix to me, making others irrelevant. > But I haven't tested it either, won't begin to do so until tonight. > And I fear I won't notice if there's any silly little bug in there, > which forces every fast RCU lookup to go the slow way instead! > > Inlined for the benefit of wider scrutiny: Looks sane. Applied. I'll wait with pull request until you test it, but that looks right.