Re: [PATCH v2] printk_ringbuffer: Avoid needless read of prb_desc

From: Petr Mladek

Date: Tue Sep 29 2026 - 11:13:14 EST


On Sat 2026-09-26 17:45:02, 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().
>
> v1->v2:
> Update the comment suggested by John.
>
> Signed-off-by: Wang Wensheng <wsw9603@xxxxxxx>
> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
> Reviewed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>

JFYI, the patch has been comitted into printk/linux.git,
branch for-7.4.

Best Regards,
Petr