Patch "ring-buffer: remove obsolete comment for free_buffer_page()" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ring-buffer: remove obsolete comment for free_buffer_page()

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ring-buffer-remove-obsolete-comment-for-free_buffer_.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 54e23956944147b55c7e5a2e07d96653611e0832
Author: Vlastimil Babka <vbabka@xxxxxxx>
Date:   Wed Mar 15 15:24:46 2023 +0100

    ring-buffer: remove obsolete comment for free_buffer_page()
    
    [ Upstream commit a98151ad53b53f010ee364ec2fd06445b328578b ]
    
    The comment refers to mm/slob.c which is being removed. It comes from
    commit ed56829cb319 ("ring_buffer: reset buffer page when freeing") and
    according to Steven the borrowed code was a page mapcount and mapping
    reset, which was later removed by commit e4c2ce82ca27 ("ring_buffer:
    allocate buffer page pointer"). Thus the comment is not accurate anyway,
    remove it.
    
    Link: https://lore.kernel.org/linux-trace-kernel/20230315142446.27040-1-vbabka@xxxxxxx
    
    Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
    Cc: Ingo Molnar <mingo@xxxxxxx>
    Reported-by: Mike Rapoport <mike.rapoport@xxxxxxxxx>
    Suggested-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
    Fixes: e4c2ce82ca27 ("ring_buffer: allocate buffer page pointer")
    Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx>
    Reviewed-by: Mukesh Ojha <quic_mojha@xxxxxxxxxxx>
    Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
    Stable-dep-of: 45d99ea451d0 ("ring-buffer: Fix bytes info in per_cpu buffer stats")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 2f562cf961e0a..51737b3d54b35 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -354,10 +354,6 @@ static void rb_init_page(struct buffer_data_page *bpage)
 	local_set(&bpage->commit, 0);
 }
 
-/*
- * Also stolen from mm/slob.c. Thanks to Mathieu Desnoyers for pointing
- * this issue out.
- */
 static void free_buffer_page(struct buffer_page *bpage)
 {
 	free_page((unsigned long)bpage->page);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux