From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:45014 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965513AbcKJXR7 (ORCPT ); Thu, 10 Nov 2016 18:17:59 -0500 Date: Thu, 10 Nov 2016 23:17:57 +0000 From: Al Viro To: Amir Goldstein Cc: Miklos Szeredi , Konstantin Khlebnikov , linux-unionfs@vger.kernel.org, linux-fsdevel Subject: Re: [RFC][PATH 4/4] ovl: relax lock_rename when moving files between work and upper dir Message-ID: <20161110231757.GN19539@ZenIV.linux.org.uk> References: <1478817883-27662-1-git-send-email-amir73il@gmail.com> <1478817883-27662-5-git-send-email-amir73il@gmail.com> <20161110230221.GL19539@ZenIV.linux.org.uk> <20161110230557.GM19539@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Nov 11, 2016 at 01:11:16AM +0200, Amir Goldstein wrote: > That is explained in commit message of the first 2 patches, but > foremost I would like to say that the name "delete locked" is just the > best of all the bad choices for names I came up with, so I am expecting > better name suggestions. > > The concept is to pin the entry so that it cannot be moved, so can have > certain guaranties about the stability of the directories topology. > > > More specifically, what makes you think that may_delete() is called before > > any change of parent? > > Because it is checked at the beginning of vfs_rename() > and in order to change a parent, an entry needs to be renamed. no? > What am I missing? Analysis of the rest of call chains where we have __d_move() called? Not to mention anything else, workdir itself might be moved around by d_splice_alias() for a sufficiently unpleasant filesystem...