commit | 700b467da6b274feac4aeaaea9368db353db1083 | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Mon Oct 21 15:09:39 2024 -0700 |
committer | Paul E. McKenney <paulmck@kernel.org> | Mon Oct 21 15:12:06 2024 -0700 |
tree | 83f4ae871f297ec0d2adc449737fc49a71d8aa86 | |
parent | 6f7c83844aaf59ef41dce3a16a6f41240e5443ee [diff] |
srcu: Guarantee non-negative return value from srcu_read_lock() For almost 20 years, the int return value from srcu_read_lock() has been always either zero or one. This commit therefore documents the fact that it will be non-negative. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Andrii Nakryiko <andrii@kernel.org