Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1611008rdb; Sat, 3 Feb 2024 14:07:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPx2KOm1NckgOFO7ghCzGBzmtaqYESumD1FwjC2lESCRrTXuKQGdcOIv0bEcKKJtQyZTOz X-Received: by 2002:a17:90a:1307:b0:296:235b:ac61 with SMTP id h7-20020a17090a130700b00296235bac61mr7767198pja.32.1706998052843; Sat, 03 Feb 2024 14:07:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706998052; cv=pass; d=google.com; s=arc-20160816; b=V8lIoeDrG6QRbx9SljLTtDi2YXgEjW1yAe7rGpD18rDygDckK/SleVOWsXifvRi/Kh Q5f974yp0IDi3mT59QFWHDcNbX7cE0yukz6Rl2kivugHla8Iqv+EB+LnEMHQRqU3ygfH jTEFxo613RNY/F6ydqZd7PrgE4r9I0D5XQDeSZ0GIeudsr5TMXj+fTOnQX8sENMgJ3f/ SY4aJB84uVkg/fUNBTRfy9+qUYcCKIoe+kXlozk9MQOdYb1tdycJIjojDnQlg5ntzrgP XSWkdSRnw1SohujUtMefGfFbu6/5qV4LbANixg3cd/IG5FCjjHnyeNdm4/mEm+6YJoFY WfHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :reply-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=CBP6rxsvCRGoqNDs3If3+DWyofv58n0zrUDxNRyJ2QA=; fh=Bd1vUrsgeQ4zotm4S5F0vktm6AyLhyahE/YZno6vuKs=; b=zP9rmTWSytRJdg0o3ANRY9Z3yVkr42/VergF+2QxEcG2rqm26IAic4vnLj/S8O+Ujc BjUl4Ezcq/cdh83BSopxGCnJPKknjt+QQwT3cKdvhH6eLODpr087iPEK4sm7x64J8tzh tLWxmiox+AIGwfXVZ2QYDBtHdBCO3wCawcgOkaD88Bsz7f3r3X8GAoc7DjjVRgW1jeAQ 0HKZ7QqFa0BVYtRg9jIUpqd8aGrodUayx1F5SBfL1zSMY3t0nX6kG8+jNMxmj3k8dG0e Z0TvKjJsz/zPKLrgHVUa7fIqoQ4wdX7S9qUdmO84+K3e33EtUei+bJlVVN0+ShMQTawU Qugg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KMxiCfNB; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=kQOGILAR; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KMxiCfNB; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=kQOGILAR; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-51308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51308-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXdxy1W5TwX1449vNZugOiaRM8NGt58Oi7u7h3tPz4nZCrf4Ma9Bw4JOiHjSHoBpgJ8qcIZakikz1cso+VeVw5EW9xYOODkj7u6TBV6Kg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id nv3-20020a17090b1b4300b00293e1a93496si2095680pjb.63.2024.02.03.14.07.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 14:07:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KMxiCfNB; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=kQOGILAR; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KMxiCfNB; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=kQOGILAR; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-51308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51308-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AC878B2156A for ; Sat, 3 Feb 2024 22:04:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFE1B1642A; Sat, 3 Feb 2024 22:04:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="KMxiCfNB"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="kQOGILAR"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="KMxiCfNB"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="kQOGILAR" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A360134C6; Sat, 3 Feb 2024 22:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706997859; cv=none; b=VovvFEYmYbkKvd3vXc8IoIBmh7B4ON6uoI2jpUnBejLLVvnailajiPn8vyr3lP4TZqUjL1gN+4VPMzMhQOVqKEUMYnjMJCxJID3/vns/1/QK4YXSgjfYANPCCV7z1Jgsva8vVH8kSCnhk3WFb395A7J631YR+Z1oOeaNrTkMsKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706997859; c=relaxed/simple; bh=4oNJDfxh60asCYceTHnZ+3VxEbkaJ68cGNVxuKB1nZk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YfaQmUxJNmLeuR/ZkLlYbMbM8QE3BzD37wQFIcvKNhY9Kjt77uKE+C1wa9S0fA5aS35+NHZLyEa0uJcy/NBZ/+I1O9YXqGub0u200d/cesV+bntWIvb2RIBDKFvOnHvz7+wPzzfAv4NDQzOrwx5gaa3SIQ6ajgIwI3bfzJw2Bmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=KMxiCfNB; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=kQOGILAR; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=KMxiCfNB; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=kQOGILAR; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 75FE621D58; Sat, 3 Feb 2024 22:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1706997854; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CBP6rxsvCRGoqNDs3If3+DWyofv58n0zrUDxNRyJ2QA=; b=KMxiCfNBGDQ0KFkkd/hPqGhVI6AwK+pOSGKG0BPm2HjuBl/mPwviLKdEVQoP7cyRSs1VEH RKJtLdkdfaXNEJ07C89U8wdkRKSm+MCC+Pjh6DgfUA95n0J/Nehn1iIAVlZfsNFOleZkHp FaG78tS4ms5SUe198XxdUHXp4fPZ3UU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1706997854; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CBP6rxsvCRGoqNDs3If3+DWyofv58n0zrUDxNRyJ2QA=; b=kQOGILAR7b0NkZBOyQO7+HgAGAELb7WFLHpWhDNq4/ZH1TG1jfu4ITcOVjs+StPutHVNrd dcBwvsd1A0grT5BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1706997854; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CBP6rxsvCRGoqNDs3If3+DWyofv58n0zrUDxNRyJ2QA=; b=KMxiCfNBGDQ0KFkkd/hPqGhVI6AwK+pOSGKG0BPm2HjuBl/mPwviLKdEVQoP7cyRSs1VEH RKJtLdkdfaXNEJ07C89U8wdkRKSm+MCC+Pjh6DgfUA95n0J/Nehn1iIAVlZfsNFOleZkHp FaG78tS4ms5SUe198XxdUHXp4fPZ3UU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1706997854; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CBP6rxsvCRGoqNDs3If3+DWyofv58n0zrUDxNRyJ2QA=; b=kQOGILAR7b0NkZBOyQO7+HgAGAELb7WFLHpWhDNq4/ZH1TG1jfu4ITcOVjs+StPutHVNrd dcBwvsd1A0grT5BA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4ECF1137FD; Sat, 3 Feb 2024 22:04:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 2zEHE164vmXLCQAAD6G6ig (envelope-from ); Sat, 03 Feb 2024 22:04:14 +0000 Date: Sat, 3 Feb 2024 23:03:46 +0100 From: David Sterba To: Linux regressions mailing list Cc: Anand Jain , Alex Romosan , CHECK_1234543212345@protonmail.com, brauner@kernel.org, linux-btrfs , linux-kernel@vger.kernel.org, Chris Mason , Josef Bacik , David Sterba , dsterba@suse.cz Subject: Re: [btrfs] commit bc27d6f0aa0e4de184b617aceeaf25818cc646de breaks update-grub Message-ID: <20240203220346.GA355@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <39e3a4fe-d456-4de4-b481-51aabfa02b8d@leemhuis.info> <20240111155056.GG31555@twin.jikos.cz> <20240111170644.GK31555@twin.jikos.cz> <7d3cee75-ee74-4348-947a-7e4bce5484b2@leemhuis.info> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d3cee75-ee74-4348-947a-7e4bce5484b2@leemhuis.info> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -1.00 X-Spamd-Result: default: False [-1.00 / 50.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.30)[dsterba@suse.cz]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com,protonmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[11]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[oracle.com,gmail.com,protonmail.com,kernel.org,vger.kernel.org,fb.com,toxicpanda.com,suse.com,suse.cz]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[19.53%] X-Spam-Flag: NO On Thu, Feb 01, 2024 at 11:25:28AM +0100, Linux regression tracking (Thorsten Leemhuis) wrote: > Hi, Thorsten here, the Linux kernel's regression tracker. Top-posting > for once, to make this easily accessible to everyone. > > Anand, what's the status wrt to below issue (which afaics seems to > affect quite a few people)? Things look stalled, but I might be missing > something, that's why I ask for a quick update. Yeah it's affecting people and not stalled but we ran out of ideas. I'll present the latest fix that works for me (similar setup as the reporter), though not everybody may like it: --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2360,6 +2360,7 @@ static int btrfs_unfreeze(struct super_block *sb) static int btrfs_show_devname(struct seq_file *m, struct dentry *root) { struct btrfs_fs_info *fs_info = btrfs_sb(root->d_sb); + char real[4096] = { "/dev/" }; /* * There should be always a valid pointer in latest_dev, it may be stale @@ -2367,7 +2368,8 @@ static int btrfs_show_devname(struct seq_file *m, struct dentry *root) * the end of RCU grace period. */ rcu_read_lock(); - seq_escape(m, btrfs_dev_name(fs_info->fs_devices->latest_dev), " \t\n\\"); + scnprintf(real + 5, sizeof(real) - 5, "%pg", fs_info->fs_devices->latest_dev->bdev); + seq_puts(m, real); rcu_read_unlock(); return 0; --- The problem that was reported was a discrepancy in what show_devname returned (/proc/self/mountinfo) and what eg. mount showed. Both resolve the device name in a different way. The problem is that mountinfo relies on what btrfs remembers as the device path that was passed during scanning && at the mount time. Since then it's not updated due to changes done in 6.7 for temp_fsid (single devices don't have any cached representation of the device, so the new path is basically forgotten). What the fix does: print the path of the same block device but not the cached (possibly stale) value.