From: Petr Mladek <pmladek@suse.com>
To: Wang Wensheng <wsw9603@163.com>
Cc: rostedt@goodmis.org, john.ogness@linutronix.de,
senozhatsky@chromium.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] printk_ringbuffer: Avoid needless read of prb_desc
Date: Wed, 23 Sep 2026 13:36:17 +0200 [thread overview]
Message-ID: <arO5sVjuy80UsMkp@pathway.suse.cz> (raw)
In-Reply-To: <20260922062520.248439-1-wsw9603@163.com>
On Tue 2026-09-22 14:25:20, Wang Wensheng wrote:
> Since commit f244b4dc53e5 ("printk: ringbuffer: Improve prb_next_seq()
> performance"), desc_read() allows @desc_out to be NULL. We can drop the
> local `desc` variable in desc_reopen_last() and prb_first_seq(). Also
> update the comment for desc_read().
>
> Signed-off-by: Wang Wensheng <wsw9603@163.com>
Great catch! Looks good to me:
Reviewed-by: Petr Mladek <pmladek@suse.com>
I am going to wait few more days for more potential feedback.
I'll commit it the following week if nobody complains.
Best Regards,
Petr
next prev parent reply other threads:[~2026-09-23 11:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 6:25 Wang Wensheng
2026-09-23 11:36 ` Petr Mladek [this message]
2026-09-24 13:49 ` John Ogness
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=arO5sVjuy80UsMkp@pathway.suse.cz \
--to=pmladek@suse.com \
--cc=john.ogness@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=senozhatsky@chromium.org \
--cc=wsw9603@163.com \
/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®