Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp817317imm; Wed, 10 Oct 2018 04:57:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV60w9vK0B6bAYqJKWCEsuPi9UjCRk19uYIMzVn6iuwmeYNnmi1VzKbdibpBbnSBkT9r0fvpM X-Received: by 2002:a63:9712:: with SMTP id n18-v6mr11765591pge.182.1539172630891; Wed, 10 Oct 2018 04:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539172630; cv=none; d=google.com; s=arc-20160816; b=Uo1Afq+g9sRgmRRlIp6Ksrezn7u7fVv/f73WSecYmNw7gWnsNFp+fJLqMuQkNkNl+8 umntWVep7dSJck0+jsZU3hzXpe1U3NZFFUTimyLoX/58pIaMovPBxWwpkcjCVNLsxsPJ FgZeYCbO6OnENW0VblJOZHtWQBz1qth9JJUijSiZKgnbqcySOCNblgd67fSPWIscZnqi xbWPHszF3y8jmq60PUmRBs8M2rEfXnJNS3ROFNd0yxMMJ573rUYMR34IcCQ+ZzYokgiq lRLCC8u+q2EbbuYImkOp5OTthsFQycUv4O8FGneuhOkJ48CPxctZ9qYNORH5u5AR9uIV b0fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization; bh=6whwRW9qzOQWuNRJJifGhzp2y9dQ4JkvUnSKBjEK0SU=; b=dECVAzVb961KY0r8mPQZUSQDyh15/bfkQxEIx28R+QtxBAQPc/xL9Ew9Y0WAahAD3R eUbjlYVExYj6OnZMBinM16YEP3azcVEi0ddQK6GfqO8mqyLGYpokvac0FHvxr1bv5tDc jZYeDOdBYz4wbAoUXl+wbQY3K5UuMc1RLziYby+MKuSQZzPBL8IvUKSg7dpjsREvL6+w y7r9/0qeW4uopfPJgUEdTJjWwAU/qujFRt3Fgx6bNjVqAclxootI0IC/dZ3vUcYUHFGS e5Zgv5L50o/E0zIx676voCYHtKv+pn9NKRGK81zCyPmJ3aJ3YJpl3qqb8upKRIbfLtn9 ihJA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7-v6si23116075ple.309.2018.10.10.04.56.55; Wed, 10 Oct 2018 04:57:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726798AbeJJTSW convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Oct 2018 15:18:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56242 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbeJJTSV (ORCPT ); Wed, 10 Oct 2018 15:18:21 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 64AEA30820C2; Wed, 10 Oct 2018 11:56:33 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-149.rdu2.redhat.com [10.10.120.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9663662A3C; Wed, 10 Oct 2018 11:56:31 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <153754740781.17872.7869536526927736855.stgit@warthog.procyon.org.uk> <153754743491.17872.12115848333103740766.stgit@warthog.procyon.org.uk> To: Alan Jenkins Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, torvalds@linux-foundation.org, ebiederm@xmission.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mszeredi@redhat.com Subject: Re: [PATCH 03/34] teach move_mount(2) to work with OPEN_TREE_CLONE [ver #12] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30812.1539172590.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Wed, 10 Oct 2018 12:56:30 +0100 Message-ID: <30813.1539172590@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Wed, 10 Oct 2018 11:56:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alan Jenkins wrote: > I replied last time to wonder about the MNT_UMOUNT mnt_flag. So I've tested it > now :-), on David's current tree (commit 5581f4935add). > > The modified do_move_mount() allows re-attaching something that was > lazy-unmounted. But the lazy unmount sets MNT_UMOUNT. And this flag is not > cleared when the mount is re-attached. Sorry, yes. I'm not sure what the best way to deal with this is. Should it just return -EPERM or -ESTALE if MNT_UMOUNT is set? David