Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1866139ybb; Thu, 2 Apr 2020 08:44:45 -0700 (PDT) X-Google-Smtp-Source: APiQypLrmGTNo6ermsV6KIoIHazLpap/a2PahOMF3X5M+m65qK2Kr8nx+9hSJT9Z+1RMKTgCkIF+ X-Received: by 2002:aca:b308:: with SMTP id c8mr2609804oif.106.1585842284769; Thu, 02 Apr 2020 08:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585842284; cv=none; d=google.com; s=arc-20160816; b=s30p/yLWb1iyYWoVwooWcEPbRNBrVEvlH5vJdKUkIstGLkIkPzo08zHknAtsFODZJH 1zqnB/eQCrsu5ezdvTNzGJ4uwESb1oQeirG5pTTZGrwSUM/YAZisHdFedjfbNdXDEimQ 8UnotAj6+Do576gdniPQO41yR1eVjqEzBr6qSvOhhLeucMsBKu5JMAjEXxZKV59jFAYQ nZTfbUOjtjXEAIdem6JWj4o7Kfymh5ki+rIUV0xfmzy8PqdXpAKztZjQaYz/ooQ8+Nao ErTwo/GCwURe2tMKPPbYQ6scUJ0wRU1np5W2ru/eRMMisBAP/GPhD1t5AZIkBjZYxWm+ bddA== 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:dkim-signature; bh=CTOYr9KXQUzM9+XwJrP/4qu2PE88TiWc2Y0lHTEoqhA=; b=Lh8zxXQ1XgPv7M1AImFPqk3zvFYc+HlKO5INch3IInBYPsxP+rU4juLQbdoZTxSJhz nfsfmYQscX75AJsjIXTDVnHYmMroB7ph7I/r/PTgHttBhiY4++ba/2KJegipOmiZi0/w iEUZAbdipMcPL7m0mYXCeM9NdBFr23Hd9CO3f8QRzYW+wsGxLA78oRW7eyZEehvpxB9S fD9lXkOWPyyR4a9lRqWbDWPlgTWWvKEgP5CFHRuXlFstQqlLY+JRTVUdLb8KafXJcOTO nTsH+8oXMKuCbjESbdnOkK9mToJNJ8QCgePKZBZxZWaJ+Vtmh5aqW9XKXIhuff3RrzrE bnSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gijeFTk5; 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=pass (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 c9si3367758ots.110.2020.04.02.08.44.28; Thu, 02 Apr 2020 08:44:44 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gijeFTk5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389329AbgDBPmz (ORCPT + 99 others); Thu, 2 Apr 2020 11:42:55 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:39083 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389120AbgDBPmy (ORCPT ); Thu, 2 Apr 2020 11:42:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585842173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CTOYr9KXQUzM9+XwJrP/4qu2PE88TiWc2Y0lHTEoqhA=; b=gijeFTk5a5MiEzV4hdpBGzY1CZ2WAtqmZZ10npzdPhwRrWCLpSepmzBTLCzsNG36TDz/n7 3hYoScKGFuw+0ADhiRQ8CJEtkPhwm9anTy6MrlMPByzkRsIpiIru9xFOLrCljIiW3mfpYQ tvCGW8/NQ4IpirL0ZdsfyOL76YfxyNc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-268-Nqp4JTTMPki3dWjiR2Rn7A-1; Thu, 02 Apr 2020 11:42:52 -0400 X-MC-Unique: Nqp4JTTMPki3dWjiR2Rn7A-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id EC8491005513; Thu, 2 Apr 2020 15:42:49 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-114-243.ams2.redhat.com [10.36.114.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id A7EA85E000; Thu, 2 Apr 2020 15:42:46 +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: <20200330211700.g7evnuvvjenq3fzm@wittgenstein> <1445647.1585576702@warthog.procyon.org.uk> <2418286.1585691572@warthog.procyon.org.uk> <20200401090445.6t73dt7gz36bv4rh@ws.net.home> <2488530.1585749351@warthog.procyon.org.uk> <2488734.1585749502@warthog.procyon.org.uk> <2590276.1585756914@warthog.procyon.org.uk> <3070724.1585840971@warthog.procyon.org.uk> To: Miklos Szeredi Cc: dhowells@redhat.com, Karel Zak , Christian Brauner , Linus Torvalds , Al Viro , dray@redhat.com, Miklos Szeredi , Steven Whitehouse , Jeff Layton , Ian Kent , andres@anarazel.de, keyrings@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Lennart Poettering , Aleksa Sarai Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3072198.1585842165.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Thu, 02 Apr 2020 16:42:45 +0100 Message-ID: <3072199.1585842165@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miklos Szeredi wrote: > > ext4_show_mount(), for example, doesn't lock against "mount -o remount= ", so > > the configuration can be changing whilst it's being rendered to text. > = > Does s_umount nest inside namespace_sem? I really don't see the > relation of those locks. If I understand aright what Al has told me, it's a bad idea to do any bloc= king operation inside of namespace_sem apart from kmalloc(GFP_KERNEL). David