Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3378477pxb; Mon, 17 Jan 2022 19:04:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrLHA3kl+fT4ezGDRRnDXteQSKJwneh8Wo4x70B1GDb+HCaEt4+o6ZeJG4zkg2hicUI6nF X-Received: by 2002:aa7:95b1:0:b0:4bf:ed5a:55d3 with SMTP id a17-20020aa795b1000000b004bfed5a55d3mr23989980pfk.64.1642475046853; Mon, 17 Jan 2022 19:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642475046; cv=none; d=google.com; s=arc-20160816; b=z8/Lddl2ism/eL8fO0QRRJV9Xxp9Yt/UE76akwDKO35VqKiNQPZ+ZIKaPjSm26dgZ3 QyUqMEsd9iW8Ro9l7AFWTJ7MdgF4Gs4PhODvQXYFPIrpkUJ61RsToBKFxsE+SxjcmPWj HVg11cjtSV8PxrB2M+OFFY6Tsii33KclRzQono/tnlgYdkNjHkCbbd/MdPJICBYTjBpH EhsVNbyd9QlbBU5atctnSb4EctKgoIyHwpYwU15x/1SyGbm17h+oILnn8PJYuDJCN7Nr NFHh2HJLz+rMsv8jTyIHuO30Y106mlPHAhahUXgF2n4kk4dMdYUQrqpK/xQA3N4Ddshv POmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=P7n87uEdX6AP7WiZCRETbtzvEHDHupG/dHaxrwEAQC8=; b=oOISoHSOYhv4MfHhjo3/YChV6G1Eig7l9xxeX8tlASPho/IDa2lhkJsB3ijtZfGFtV 4Kg5nRHCERl6LKcNABHGUG+gfeg6sn4pyPxSXcULJe7W91cvdG1sekS1UvJPzVP9GH6E zwANeW3HIHJd2jziuji5jNPyivKSeFYOcGvOHPWHkzNkZX8xPkg7NxPRY2jeeL3TCoFU CZl3yAksat6sxS8ZiwagqxwCGGe8/rYBoP6ZJh5RStVHQwB6Db2hJUllvFv2chJOQ+3+ yv59b6K+NlCpueb1VEVJQq3JtUbPdGSyWrNs8PBqM9Hz54/cCLe51oehXpUtlRPfPTCw Abag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IIp0lRCZ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=oiXsTGkz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si16378907pgq.153.2022.01.17.19.03.52; Mon, 17 Jan 2022 19:04:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IIp0lRCZ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=oiXsTGkz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243703AbiAQW51 (ORCPT + 99 others); Mon, 17 Jan 2022 17:57:27 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:57186 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbiAQW50 (ORCPT ); Mon, 17 Jan 2022 17:57:26 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 4DCBD212C6; Mon, 17 Jan 2022 22:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1642460245; h=from:from:reply-to: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=P7n87uEdX6AP7WiZCRETbtzvEHDHupG/dHaxrwEAQC8=; b=IIp0lRCZ46tjOlNYdKtcQvs4fMVMos27RVH1sts3oeBtQ++NY4e/Bg7ORS0HB+r/0jR7w9 KhwiE03oScvFl1sJD5UkMFQEA6zQ0bAEhlSacM/0Io7G0SqlrGXelAlkT5J9wR8JYef3oL Un0vYOE3FfRoAIqbzxGYGQkkVFqEiYk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1642460245; h=from:from:reply-to: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=P7n87uEdX6AP7WiZCRETbtzvEHDHupG/dHaxrwEAQC8=; b=oiXsTGkzXw7eP/0rTLj8LfUczvFMyqm38HLIOw0dEdqaNm6GyrqdqlRGs5q8a8dVkoGhD1 k1Y4JajvAaC7YbAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A4D5213EA9; Mon, 17 Jan 2022 22:57:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id x4U/GFL05WE3DQAAMHmgww (envelope-from ); Mon, 17 Jan 2022 22:57:22 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Linus Torvalds" Cc: "Al Viro" , "Andrew Morton" , "Christian Brauner" , "Anthony Iliopoulos" , "David Howells" , "Greg Kroah-Hartman" , "LKML" , "linux-fsdevel" Subject: Re: [PATCH - resend] devtmpfs regression fix: reconfigure on each mount In-reply-to: References: <163935794678.22433.16837658353666486857@noble.neil.brown.name>, <20211213125906.ngqbjsywxwibvcuq@wittgenstein>, , <20211214101207.6yyp7x7hj2nmrmvi@wittgenstein>, , <20211214141824.fvmtwvp57pqg7ost@wittgenstein>, <164237084692.24166.3761469608708322913@noble.neil.brown.name>, Date: Tue, 18 Jan 2022 09:57:19 +1100 Message-id: <164246023981.24166.3391008944843186406@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Jan 2022, Linus Torvalds wrote: > On Mon, Jan 17, 2022 at 12:07 AM NeilBrown wrote: > > > > Since that was changed, the mount options used for devtmpfs are ignored. > > This is a regression which affect systemd - which mounts devtmpfs > > with "-o mode=755,size=4m,nr_inodes=1m". > > Hmm, I've applied this, but I'd have loved to see what the actual > symptoms of the problem were. Particularly since it's apparently been > broken for 18 months with this being the first I hear of it. > > Yes, yes, I could (and did) search for this on the mailing lists, and > found the discussion and more information, but I think that info > should have been in the commit message rather than me having to go > look for it just to see the clarifications.. Sorry about that. The trail was a bit convoluted and I hadn't bothered to straighten it out as the behavioural change was so easy to demonstrate. I've had a better look now. A customer with a 5.3 based kernel reported that udev was having problems creating all the symlinks for lots of LUNs for some storage array (With dm devices over the LUNs etc). It ran out of inodes because systemd always mounts devtmpfs with size=4m,nr_inodes=64k This was bumped to 128k and then to 1m in systemd-v250. We provided our customer with a systemd which used a larger limit, but when we tested this fix on Tumbleweed (with a newer kernel), we noticed that it had no effect. Now admittedly the default provided by the kernel is a lot bigger than even the current 1m setting from systemd so maybe this doesn't matter. Had the commit which changed behaviour said "systemd sets nr_inodes to a stupidly low number, let's just ignore the mount options", then I probably would have accept it. But it looked like behaviour change without justification and that suggests a regression. So I patched it. Thanks, NeilBrown