From: Zhu GuangLei <zhugl3@xiaopeng.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
liuwb@xiaopeng.com
Subject: Re: [PATCH v2] misc/pvpanic: share the shutdown handler across devices
Date: Wed, 25 Nov 2026 19:56:00 +0800 [thread overview]
Message-ID: <20261125115601.72376-1-zhugl3@xiaopeng.com> (raw)
In-Reply-To: <2026112558-shirt-supply-0cf0@gregkh>
On Wed, Nov 25, 2026 at 11:06:22AM +0100, Greg Kroah-Hartman wrote:
> > + guard(mutex)(&pvpanic_sys_off_lock);
> > +
> > return sysfs_emit(buf, "%x\n", pi->events);
> > }
>
> Why do you need a lock to read a single value that could change right
> after it is read?
You don't, the lock adds nothing there. I'll drop it in v3 and leave
events_show() as it is today.
thanks,
Zhu GuangLei
next prev parent reply other threads:[~2026-11-25 11:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 8:06 [PATCH] " Zhu GuangLei
2026-11-25 8:34 ` Greg Kroah-Hartman
2026-11-25 9:15 ` Zhu GuangLei
2026-11-25 9:15 ` [PATCH v2] " Zhu GuangLei
2026-11-25 10:06 ` Greg Kroah-Hartman
2026-11-25 11:56 ` Zhu GuangLei [this message]
2026-11-25 11:56 ` [PATCH v3] " Zhu GuangLei
2026-11-25 12:12 ` Greg Kroah-Hartman
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=20261125115601.72376-1-zhugl3@xiaopeng.com \
--to=zhugl3@xiaopeng.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liuwb@xiaopeng.com \
--cc=stable@vger.kernel.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®