]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Have the shortest_full queue be the shortest not longest
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 27 Sep 2022 23:15:24 +0000 (19:15 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 27 Sep 2022 23:23:03 +0000 (19:23 -0400)
commit702dc9c61e7257d7f477acca7a9d2a4acbd157a9
treed82678ef500240f88f0b17464137c45f638ebaa2
parent2a46fcd01ae9de4c3b5b89906d936b612a0c2565
ring-buffer: Have the shortest_full queue be the shortest not longest

The logic to know when the shortest waiters on the ring buffer should be
woken up or not has uses a less than instead of a greater than compare,
which causes the shortest_full to actually be the longest.

Link: https://lkml.kernel.org/r/20220927231823.718039222@goodmis.org
Cc: stable@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Fixes: 3b1e5cf0237dd ("ring-buffer: Add percentage of ring buffer full to wake up reader")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c