summaryrefslogtreecommitdiffstats
path: root/block/blk-iolatency.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2022-07-12 17:27:41 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-12 14:39:06 -0600
commit939f9dd040fe1063d884f8f0f89b037093fe2341 (patch)
tree71f1874add6d679773e8bd0d4000690fde284f85 /block/blk-iolatency.c
parentf4b1e27db49c8b985b116aa99481b4c6a4342ed4 (diff)
downloadlinux-939f9dd040fe1063d884f8f0f89b037093fe2341.tar.bz2
block: Use try_cmpxchg in update_io_ticks
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in update_io_ticks. 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/20220712152741.7324-1-ubizjak@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iolatency.c')
0 files changed, 0 insertions, 0 deletions