Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3655578imm; Fri, 19 Oct 2018 14:35:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV62qztTHcHAbqxO+swD/MgZlrRiH694Ip7qQy5UxIsodwLKbDrkn5Rzw8WV/za4jsr1cCJym X-Received: by 2002:aa7:814f:: with SMTP id d15-v6mr36500281pfn.78.1539984949669; Fri, 19 Oct 2018 14:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539984949; cv=none; d=google.com; s=arc-20160816; b=V+9uFGtpxEeAgHg5diY+Yp9smYgQe6FJyGM5IRaQfvUNs1Whalp1B8gzUjmjN1dgV/ AaeDS7yzIE1Tmk1kBLdSnxzBJCHYzXR9P9wnAs8W37Mc/GAlFT1a/LKyzJDILZcjr3UK MPxsgg5it/oMj0IteRFGNsw5OHfmYHRmlPdo/omB2bvEb4b4Sr1zg8dvx4ibNM+kNx5p YZdwc8Q++azMHSHlY9qzN150ISEmYDAFCorL3JPOk24UyswHILbV7tCTpbdWFgJf/mo4 1jLdcb1r67ESmGlTTcwikwFoYQKBdxoNlXjwVUCoflY+F9+KNy3TP9xMN+O4JC88yGTl Yeug== 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 :mime-version:subject:cc:to:references:in-reply-to:from:organization; bh=tszHBB5cVxA6tA2t7zENk0AP7yWA4wWhGYt1BGa7mDw=; b=Y7N/X6v+NAVsgtIeG6asHVWDJRr3zeTNJnQMOkPgSO72Dz8/NKEvGNYff0eWEmTM/i HYjjUJUlvJj9+C1GiohmMHEgrbpzXY9OvkbZ3959FRH+ShNttU/0ZjcGZHqFOfwiqIEW zF5VUlGnHwvhPeHpI2HJftmBMIR656nxEjemxvAEQZ4o/lUAH33IqzJffLK9uKu9N7gv fcBX9Cip2NrzvZyKoPoMlY5V6IWfSPhWg5kR+syyN3AzKQdqEwUiNKvOQgEgoNpWCAyG 832CKef18A3DuroCe2htZZVQf24lVio8vP7WTpIV+G/Ov3OaHJhM4yrDSc6qU56lZDXH OUkQ== 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 az12-v6si24903472plb.67.2018.10.19.14.35.34; Fri, 19 Oct 2018 14:35:49 -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 S1727302AbeJTFnC convert rfc822-to-8bit (ORCPT + 99 others); Sat, 20 Oct 2018 01:43:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59754 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbeJTFnC (ORCPT ); Sat, 20 Oct 2018 01:43:02 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E7115D67E; Fri, 19 Oct 2018 21:35:12 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-250.rdu2.redhat.com [10.10.120.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9D8C319483; Fri, 19 Oct 2018 21:35:10 +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: <97872123-70be-2833-ea7a-a463ce204b53@gmail.com> References: <97872123-70be-2833-ea7a-a463ce204b53@gmail.com> <862e36a2-2a6f-4e26-3228-8cab4b4cf230@gmail.com> <153754740781.17872.7869536526927736855.stgit@warthog.procyon.org.uk> <153754743491.17872.12115848333103740766.stgit@warthog.procyon.org.uk> <6518.1539956277@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=utf-8 Content-Transfer-Encoding: 8BIT Date: Fri, 19 Oct 2018 22:35:09 +0100 Message-ID: <10117.1539984909@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 19 Oct 2018 21:35:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alan Jenkins wrote: > And the first sequence I mentioned - close the FD, then mount+unmount - > seems to be unchanged. Unchanged in what sense? Still breaks? I thought I'd fixed that - or are we talking about a different first sequence? Sorry, I'm losing track of how many different ways of breaking open_tree() and move_mount() you've posted. I don't suppose you could post a checklist? > I guess this tries to fix the second of the two sequences I mentioned - > mount+unmount, then close the FD.  It doesn't seem to work. > > # open_tree_clone 3 # cd /proc/self/fd/3 > # mount --move . /mnt > [ 41.747831] mnt_flags=1020 umount=0 > # cd / > # umount /mnt > umount: /mnt: target is busy > > ^ a newly introduced bug? I do not remember having this problem before. > > # umount -l /mnt Sigh, so I see. I have the attached trace from this sequence. David ---- Command "open_tree_clone 3