diff options
| author | Paul E. McKenney <paulmck@kernel.org> | 2021-07-28 20:53:41 +0300 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2021-09-15 21:37:50 +0300 |
| commit | 96017bf9039763a2e02dcc6adaa18592cd73a39d (patch) | |
| tree | dd2be468a0f212db7625eb7f3735333cfd137a30 /include/linux/fpga/fpga-bridge.h | |
| parent | cbe0d8d91415c9692fe88191940d98952b6855d9 (diff) | |
| download | linux-96017bf9039763a2e02dcc6adaa18592cd73a39d.tar.xz | |
rcu-tasks: Simplify trc_read_check_handler() atomic operations
Currently, trc_wait_for_one_reader() atomically increments
the trc_n_readers_need_end counter before sending the IPI
invoking trc_read_check_handler(). All failure paths out of
trc_read_check_handler() and also from the smp_call_function_single()
within trc_wait_for_one_reader() must carefully atomically decrement
this counter. This is more complex than it needs to be.
This commit therefore simplifies things and saves a few lines of
code by dispensing with the atomic decrements in favor of having
trc_read_check_handler() do the atomic increment only in the success case.
In theory, this represents no change in functionality.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions
