• S
    ring-buffer: remove unneeded conditional in rb_reserve_next · 8e7abf1c
    Steven Rostedt 提交于
    The code in __rb_reserve_next checks on page overflow if it is the
    original commiter and then resets the page back to the original
    setting.  Although this is fine, and the code is correct, it is
    a bit fragil. Some experimental work I did breaks it easily.
    
    The better and more robust solution is to have all commiters that
    overflow the page, simply subtract what they added.
    
    [ Impact: more robust ring buffer account management ]
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    8e7abf1c
ring_buffer.c 76.0 KB