diff options
author | Marco Elver <elver@google.com> | 2021-06-07 15:56:50 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-07-20 23:49:43 +0300 |
commit | 08cac6049412061e571fadadc3e23464dc46d0f2 (patch) | |
tree | 8ca18f66e25e65833db18c6b3425f6d4b8daa677 /Documentation/dev-tools/kcsan.rst | |
parent | e675d2533a74acfa95c62e7bb088335866f44fd2 (diff) | |
download | linux-08cac6049412061e571fadadc3e23464dc46d0f2.tar.xz |
kcsan: Reduce get_ctx() uses in kcsan_found_watchpoint()
There are a number get_ctx() calls that are close to each other, which
results in poor codegen (repeated preempt_count loads).
Specifically in kcsan_found_watchpoint() (even though it's a slow-path)
it is beneficial to keep the race-window small until the watchpoint has
actually been consumed to avoid missed opportunities to report a race.
Let's clean it up a bit before we add more code in
kcsan_found_watchpoint().
Signed-off-by: Marco Elver <elver@google.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'Documentation/dev-tools/kcsan.rst')
0 files changed, 0 insertions, 0 deletions