summaryrefslogtreecommitdiff
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2022-07-12 18:19:47 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-13 00:45:31 +0300
commitaee8960c2eae12636040dbf0f04e135273b1612d (patch)
treeda17cc2655233b3460ba68c36a0ea92b47315094 /block/blk-cgroup.h
parent939f9dd040fe1063d884f8f0f89b037093fe2341 (diff)
downloadlinux-aee8960c2eae12636040dbf0f04e135273b1612d.tar.xz
blk-iolatency: Use atomic{,64}_try_cmpxchg
Use atomic_try_cmpxchg instead of atomic_cmpxchg (*ptr, old, new) == old in check_scale_change and atomic64_try_cmpxchg in blkcg_iolatency_done_bio. x86 CMPXCHG instruction returns success in ZF flag, so this change saves a compare after cmpxchg (and related move instruction in front of cmpxchg). No functional change intended. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: Jens Axboe <axboe@kernel.dk> Link: https://lore.kernel.org/r/20220712151947.6783-1-ubizjak@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
0 files changed, 0 insertions, 0 deletions