From: Prashant Singh <singhpra@juniper.net>
To: <bigeasy@linutronix.de>
Cc: <ardb@kernel.org>, <jk@ozlabs.org>, <clrkwllms@kernel.org>,
<rostedt@goodmis.org>, <corbet@lwn.net>,
<skhan@linuxfoundation.org>, <rdunlap@infradead.org>,
<lgoncalv@redhat.com>, <93sam@debian.org>,
<linux-efi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-doc@vger.kernel.org>, <linux-rt-devel@lists.linux.dev>,
Prashant Singh <singhpra@juniper.net>
Subject: Re: [PATCH v4] efivarfs: add nostatfs mount option to skip QueryVariableInfo()
Date: Tue, 29 Sep 2026 18:35:00 -0700 [thread overview]
Message-ID: <20260930013500.10273-1-singhpra@juniper.net> (raw)
In-Reply-To: <20260929151401.doOQX7D0@linutronix.de>
Thanks Ard and Sebastian for the comments.
>Please don't respond to questions by respinning the patch without
>having any discussion at all.
Noted, and apologies for sending v4 without first finalizing the v3
discussion.
>I asked you an honest question, and it seems Sashiko spotted an
>issue here too.
>Is there a problem with how the current code deals with uid and gid
>on a remount?
No, I checked and did not find a problem. I mentioned this in my
response to your query on v3:
https://lore.kernel.org/all/20260925113145.7396-1-singhpra@juniper.net/
>This until the end looks extremely verbose.
I can drop the strace data from the commit message if that reads
cleaner; I had included it to highlight the issue.
>could this be, I don't know something smaller not including the
>commandline where I would expect that people know how to use it.
>
>=================== =========================================================
>(no)statfs Control whether ``statfs(2)`` reports the variable-store
> used/ available. Disabling it skips the EFI runtime
> service call, which might block the CPU for a few milliseconds,
> reporting 0 for used and capacity. Enabled by default on
> PREEMPT_RT.
>=================== =========================================================
>
>It might make sense to add this knob to Documentation/core-api/real-time/hardware.rst.
Thanks, I will use this wording and move it to
Documentation/core-api/real-time/hardware.rst.
>Here and below you add a comment to every change you make. What about
>focusing on the important parts, that deserve an explanation why a
>change has been made. For instance why nostatfs has the READ_ONCE/
>WRITE_ONCE accessors and sometimes it does not.
Apologies, that was a miss on my part, and I saw that sashiko-bot
flagged it too. I wanted to gather any additional comments before
addressing it.
>Yeah the most severe issue is that entering SMM requires a rendez-vous
>of all the cores, and so whether preemption is enabled or not is
>actually kind of irrelevant, given that all the other cores just
>disappear.
Yes, I observed the same behavior. I was not sure whether this is
x86-specific, so I refrained from mentioning it in the commit log.
>Right. So if anything, there could be a data_race() in one place
>instead inconsistent READ/ WRITE once as we have it now.
I would use data_race() on the write for nostatfs. Please let me know
if the below looks OK:
/* nostatfs is read locklessly by statfs()/show_options(); the racy update is benign. */
data_race(sfi->mount_opts.nostatfs = new_sfi->mount_opts.nostatfs);
Thanks,
Prashant
next prev parent reply other threads:[~2026-09-30 1:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-28 20:34 Prashant Singh
2026-09-28 20:47 ` sashiko-bot
2026-09-29 6:32 ` Ard Biesheuvel
2026-09-29 7:43 ` Sebastian Andrzej Siewior
2026-09-29 12:22 ` Ard Biesheuvel
2026-09-29 15:14 ` Sebastian Andrzej Siewior
2026-09-30 1:35 ` Prashant Singh [this message]
2026-09-30 6:09 ` Ard Biesheuvel
2026-09-30 6:32 ` Sebastian Andrzej Siewior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260930013500.10273-1-singhpra@juniper.net \
--to=singhpra@juniper.net \
--cc=93sam@debian.org \
--cc=ardb@kernel.org \
--cc=bigeasy@linutronix.de \
--cc=clrkwllms@kernel.org \
--cc=corbet@lwn.net \
--cc=jk@ozlabs.org \
--cc=lgoncalv@redhat.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=rdunlap@infradead.org \
--cc=rostedt@goodmis.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®