aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2021-05-13 18:17:02 +0000
committerPaul E. McKenney <[email protected]>2021-07-20 20:52:03 +0000
commit1846a7fa767fbf8cf42d71daf75d51e30e3c8327 (patch)
tree3e74cbd36a43ad73d5d1696271a6568fe66f7b57 /fs/ext4/fast_commit.c
parentLinux 5.14-rc2 (diff)
downloadkernel-1846a7fa767fbf8cf42d71daf75d51e30e3c8327.tar.gz
kernel-1846a7fa767fbf8cf42d71daf75d51e30e3c8327.zip
tools/memory-model: Make read_foo_diagnostic() more clearly diagnostic
The current definition of read_foo_diagnostic() in the "Lock Protection With Lockless Diagnostic Access" section returns a value, which could be use for any purpose. This could mislead people into incorrectly using data_race() in cases where READ_ONCE() is required. This commit therefore makes read_foo_diagnostic() simply print the value read. Reported-by: Manfred Spraul <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions