aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2025-05-15 17:39:25 +0000
committerChristian Brauner <[email protected]>2025-05-21 07:34:29 +0000
commit8e184bf1cd7495c63242651de6190bb1678730b0 (patch)
tree7da590135680a3117d938dfb6450d6577e85c45b /tools/perf/scripts/python/arm-cs-trace-disasm.py
parentfs/buffer: remove superfluous statements (diff)
downloadkernel-8e184bf1cd7495c63242651de6190bb1678730b0.tar.gz
kernel-8e184bf1cd7495c63242651de6190bb1678730b0.zip
fs/buffer: optimize discard_buffer()
While invalidating, the clearing of the bits in discard_buffer() is done in one fully ordered CAS operation. In the past this was done via individual clear_bit(), until e7470ee89f0 (fs: buffer: do not use unnecessary atomic operations when discarding buffers). This implies that there were never strong ordering requirements outside of being serialized by the buffer lock. As such relax the ordering for archs that can benefit. Further, the implied ordering in buffer_unlock() makes current cmpxchg implied barrier redundant due to release semantics. And while in theory the unlock could be part of the bulk clearing, it is best to leave it explicit, but without the double barriers. Signed-off-by: Davidlohr Bueso <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions