From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org by pdx-caf-mail.web.codeaurora.org (Dovecot) with LMTP id ZqBREhi/HFsVaAAAmS7hNA ; Sun, 10 Jun 2018 06:03:04 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3636160795; Sun, 10 Jun 2018 06:03:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by smtp.codeaurora.org (Postfix) with ESMTP id BDE1B605A5; Sun, 10 Jun 2018 06:03:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BDE1B605A5 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=ZenIV.linux.org.uk Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753735AbeFJGDA (ORCPT + 25 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?