| commit | 50d8a5d2a94cc28693b19cbd481203f4dc013a47 | [log] [tgz] |
|---|---|---|
| author | Paul E. McKenney <paulmck@kernel.org> | Tue Dec 16 13:38:52 2025 -0800 |
| committer | Paul E. McKenney <paulmck@kernel.org> | Tue Dec 16 14:18:08 2025 -0800 |
| tree | d6a594023eebf439612ece8c4d5024665d2ddf49 | |
| parent | 140b89ba7d1758e1aaea472486424a915d665a27 [diff] |
rcutorture: Correctly compute probability to invoke ->exp_current()
Lack of parentheses causes the ->exp_current() function, for example,
srcu_expedite_current(), to be called only once in four billion times
instead of the intended once in 256 times. This commit therefore adds
the needed parentheses.
Reported-by: Chris Mason <clm@meta.com>
Fixes: 950063c6e897 ("rcutorture: Test srcu_expedite_current()")
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>