Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp890885imm; Wed, 10 Oct 2018 06:03:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV6180JVABx77m3axx/1e6NeJDLRMxaPMxaax708c4cAhm95b5z9qOj/1NbfzuydBf8blg3jT X-Received: by 2002:a62:38d0:: with SMTP id f199-v6mr34751784pfa.48.1539176614478; Wed, 10 Oct 2018 06:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539176614; cv=none; d=google.com; s=arc-20160816; b=RlhPSY8n/aUZcxRtwI8T/yjMtxoL6vudPq3q6nwFAY2IwBy3GLGlh33GZ5Ap94AWP0 MrXrcnrFXn3puZHDXtisY+Xi2p9vqIzev4LaKaGO/RjQs/IL4BRCIODRgnMmlgalx8jF SRfU3/fRMt9WV92fPsd5FjL+TKt1Rwz9D7JJz0J7FigJQHPc6v5YVjT5CoIflarZR9cT pLvFIeYJKF7Jaxwc4mzOfyUVMjKpX0Tdi10T5n0H5zeOvP5X1w29Iz21uDn/nraT6LY5 kCgINk8JJoaBJTvSvf0WRCl1c8DkRJQDUo5tATcVUOh9U2qi8Z/lgti3V30owv3G2yx3 M8Cg== 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=HpxRiQn8iPu+2gAR2F9eZ94YX2agFI+jTtK/NRWdM3w=; b=eZo04FyMMWwvoL2PuAsJB4F3103uTWD9v4kAamb72k6JDOX+qfOthUqv3dg8zfpvVL UksZfqr7Lc49Cms7P7VOGOXSjC6hBXAfC2zWbUO5WLLxrTTKGJZMpevD/eVRHslxi0mo g1OQ0kLc0u16vAzvCyU8Fr5FveYUE21nk5OElfzAFkM9u00e+eSx3yySbkO0xCnSr+0t vWKNqR7nXhc7I1l7Dnfjmn/MoRfBWE+fhszP7xZyDQ8zqalDNwaHkvbJktSK8EVE4f0n wjhxDfpM/qvuI+oClEcitqpE/sX/j1KtCMA4fh8XZiJw1uuUyZkazNy1ki2uyUvk7yKh WB/g== 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 w8-v6si24311638plz.333.2018.10.10.06.03.19; Wed, 10 Oct 2018 06:03:34 -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 S1726960AbeJJUYg convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Oct 2018 16:24:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35682 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbeJJUYg (ORCPT ); Wed, 10 Oct 2018 16:24:36 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 993F44E4C0; Wed, 10 Oct 2018 13:02:31 +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 EFE8C6955C; Wed, 10 Oct 2018 13:02:29 +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 , viro@zeniv.linux.org.uk Cc: dhowells@redhat.com, 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: <15750.1539176549.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Wed, 10 Oct 2018 14:02:29 +0100 Message-ID: <15751.1539176549@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 10 Oct 2018 13:02:31 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The attached change seems to fix the lazy-umount problem. David --- diff --git a/fs/namespace.c b/fs/namespace.c index 5adeeea2a4d9..d43f0fa152e9 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2472,7 +2472,7 @@ static int do_move_mount(struct path *old_path, struct path *new_path) if (old->mnt_ns && !attached) goto out1; - if (old->mnt.mnt_flags & MNT_LOCKED) + if (old->mnt.mnt_flags & (MNT_LOCKED | MNT_UMOUNT)) goto out1; if (old_path->dentry != old_path->mnt->mnt_root)