Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2693565imm; Sat, 9 Jun 2018 23:04:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ9uY6oLS0yf0IOuGnYTQPsKEthRVIMyUPRD0s+0eZAe/ivvzAFSAlTZYFVP8tEkzh7k3XL X-Received: by 2002:a63:2ac4:: with SMTP id q187-v6mr10963547pgq.333.1528610673744; Sat, 09 Jun 2018 23:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528610673; cv=none; d=google.com; s=arc-20160816; b=RNI8ZeUtlr83tQFNC3BDIWuBUC0zEiKZc+v2Rird/0DUIXjvxsFWwrIlofrE0Q5K7i LY94GaclKm3SchOCBHcvR4uc1UUSVC0kW6/wvjdMriPGmrG+ABE/qy62ctCJQDhta7Cr T6EEh4knLIwPLu+SBJ2BwD8DzLLpCTBAcdT8JBMciTEgfrnpkqLZ/njTs2DKeMZxbCWw gtUgZ7FUTtTamDZUiPYq58BM29CfSmMuRLiIe157ns/Q+xYH86dsEJ3RJ4mb9XKyX/9n blofCtJCmpLa3suAd0N42KRVab1Olw/ZMJgZqoa6U5SlHXwQF6QaqVcnqnBy2Om2C/Lr Knrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=u2cee7PPPi2U8juGv6OeTeeuTcAHmx1cTPxTwrKpfTs=; b=WU9dzeA7HqYqPXZxGnUb+Y93NL3lyl8TT5PXAiNBlMK8H6snELvKBdwcabG8LJwQyx dTj38vhBp7ddi+lQV0q/UhtBFeYKtj8gmtnuhJdnSz2JEiU9CUkdcecqGzVASUeYiQ5F p/zZTd3CaroadYN9SKnat3DAV4e/NPvJrAu6yJWPAc8nPOW+d4RdHBBw6og/N3PckG46 4G+mvpKJjSHaEYh5umiqCkFfdy3NYZR8bU3SwpGwCweceQxqXHKUjF+yThs6HJoeRkji YuilYfarSbjgG5JOVhUB4bneqYnVVZjP8ifAJawbLxvmDYDlTXkG3j2xILJtmukLNBt/ jxxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13-v6si6515526pgn.391.2018.06.09.23.04.19; Sat, 09 Jun 2018 23:04:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753723AbeFJGDA (ORCPT + 99 others); Sun, 10 Jun 2018 02:03:00 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:54608 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753562AbeFJGC7 (ORCPT ); Sun, 10 Jun 2018 02:02:59 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fRtQd-0004Tw-1V; Sun, 10 Jun 2018 06:02:31 +0000 Date: Sun, 10 Jun 2018 07:02:15 +0100 From: Al Viro To: Miklos Szeredi Cc: linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/11] vfs: factor out inode_insert5() Message-ID: <20180610060159.GS30522@ZenIV.linux.org.uk> References: <20180529144143.16378-1-mszeredi@redhat.com> <20180529144143.16378-10-mszeredi@redhat.com> <20180610054902.GQ30522@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180610054902.GQ30522@ZenIV.linux.org.uk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 10, 2018 at 06:49:10AM +0100, Al Viro wrote: > On Tue, May 29, 2018 at 04:41:41PM +0200, Miklos Szeredi wrote: > > From: Miklos Szeredi > > > > Split out common helper for race free insertion of an already allocated > > inode into the cache. Use this from iget5_locked() and > > insert_inode_locked4(). Make iget5_locked() use new_inode()/iput() instead > > of alloc_inode()/destroy_inode() directly. > > ... thus hitting the sucker with ->evict_inode(), in condition that is quite > likely to be unfit to be seen by that. > > NAK. To clarify: objection here is against the switch to new_inode/iput. The rest is sane. What makes new_inode() better here, anyway?