diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2024-06-06 09:59:01 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2024-06-06 11:24:58 -0700 |
commit | ea6ee1bac6034cb4e91bcc229ed1354ca1a024d5 (patch) | |
tree | 2becc764127af9315b63812cd688c64a290bebf3 /fs/stack.c | |
parent | 4c830eef806679dc243e191f962c488dd9d00708 (diff) |
tools/memory-model: Code reorganization in lock.cat
Code reorganization for the lock.cat file in tools/memory-model:
Improve the efficiency by ruling out right at the start RU events
(spin_is_locked() calls that return False) inside a critical section
for the same lock.
Improve the organization of the code for handling LF and RU events by
pulling the definitions of the pair-to-relation macro out from two
different complicated compound expressions, using a single standalone
definition instead.
Rewrite the calculations of the rf relation for LF and RU events, for
greater clarity.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Andrea Parri <parri.andrea@gmail.com>
Acked-by: Andrea Parri <parri.andrea@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions