Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5084527pxb; Wed, 19 Jan 2022 10:40:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBkN1F8OFx8F3nNavPE0hfHwzpq4YR51ixIONDN0NvHXSzolCkk0PSS7MDrli3bWWkZSgI X-Received: by 2002:a63:204c:: with SMTP id r12mr23016505pgm.505.1642617632793; Wed, 19 Jan 2022 10:40:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642617632; cv=none; d=google.com; s=arc-20160816; b=Twz9/dGOqz3RLCsUYPIIl83PLqXzQVBW5FHwYNyX7JBuouCt99738JqEF8uNU0G2Nx BW4YpZflRr7mkSLPUFHLsucWcTnMFrZ22MqGRYJ/OyPnNwYBWKp71hghLfzSc5Fdk0z9 AdCZ49D/DXC0GlOK8nG+PsrrbGMv62YP805w6yDPffkAwhMAr9yLuvmrebznvShAxBLz J3vNSxxXTGTCyVFIu1Ldv9TDXg6fC299O98Cu9CSg2IWwYJuB17x4GtPBg5heBSWqH7s NxVCGNJko/iBm0cQMsJxY6qW5avZ8O8xmhuGiNBbr45/F0G+En8+I4Ib9H+7zhm6HC5C 4FJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=8C0REa/03/sm5AxY/++Y0C0byZU60aNasltqK8z1ZEI=; b=P+bx1AnsSwJj5PeVX4leS5VMAs0rG4KfmhcpDmBSgklis6N58gvMd+jXHAYkTdhOXH YJid+ZOQkQ+jk1QyYf1oPY7qnfd/xrOTPEqhPGmmGfaw9uf4Tu5veoilYCIZGDoCodNS Z8CHDVFfpuJx+4Zx370A4LKwGXBNAdMJa5wMR0eK/59hsZxv+64YpczKtcB8rskUu8aV o0w7hFfsnBEkvoYi312+uwBfH+LFa5y7CHeUSle6zbVO6ygxN13Cy7pZGgEDohXJrh9y r4XSq56i+jEGWigFLRAH/A7bCWAzzYGdwiGSdEPMZQy1hMGuZ6IGsb0nqwZwcuNBD+wA Rplg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si404582pll.112.2022.01.19.10.40.21; Wed, 19 Jan 2022 10:40:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344424AbiARD4d (ORCPT + 99 others); Mon, 17 Jan 2022 22:56:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356782AbiARDyv (ORCPT ); Mon, 17 Jan 2022 22:54:51 -0500 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDD38C06C112; Mon, 17 Jan 2022 19:03:59 -0800 (PST) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9emm-002hys-Bh; Tue, 18 Jan 2022 03:03:52 +0000 Date: Tue, 18 Jan 2022 03:03:52 +0000 From: Al Viro To: Ian Kent Cc: Brian Foster , "Darrick J. Wong" , Christoph Hellwig , Miklos Szeredi , David Howells , Kernel Mailing List , linux-fsdevel , xfs , Linus Torvalds Subject: Re: [PATCH] vfs: check dentry is still valid in get_link() Message-ID: References: <164180589176.86426.501271559065590169.stgit@mickey.themaw.net> <275358741c4ee64b5e4e008d514876ed4ec1071c.camel@themaw.net> <0f6c2348dae2c47ea46a986884a75fc7d44bb6fb.camel@themaw.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f6c2348dae2c47ea46a986884a75fc7d44bb6fb.camel@themaw.net> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 18, 2022 at 10:31:53AM +0800, Ian Kent wrote: > Wouldn't that case be caught by the unlazy call since ->get_link() > needs to return -ECHILD for the rcu case now (in xfs anyway)? *shrug* that'd solve the problem, all right, but it's a serious overkill in several respects.