]> git.ipfire.org Git - thirdparty/linux.git/commit
rcutorture: Fix rcu_torture_one_read() pipe_count overflow comment
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Mar 2024 03:21:47 +0000 (19:21 -0800)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Tue, 16 Apr 2024 09:16:35 +0000 (11:16 +0200)
commit8b9b443fa860276822b25057cb3ff3b28734dec0
treeb2f40a1df5aabce16da38be96c086be0cdee426c
parent8d0f9a6639f5083453602375ce9d3b71ef93ac73
rcutorture: Fix rcu_torture_one_read() pipe_count overflow comment

The "pipe_count > RCU_TORTURE_PIPE_LEN" check has a comment saying "Should
not happen, but...".  This is only true when testing an RCU whose grace
periods are always long enough.  This commit therefore fixes this comment.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Closes: https://lore.kernel.org/lkml/CAHk-=wi7rJ-eGq+xaxVfzFEgbL9tdf6Kc8Z89rCpfcQOKm74Tw@mail.gmail.com/
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/rcutorture.c