diff options
| author | Uros Bizjak <[email protected]> | 2022-07-12 17:19:47 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-07-12 15:45:31 -0600 |
| commit | aee8960c2eae12636040dbf0f04e135273b1612d (patch) | |
| tree | da17cc2655233b3460ba68c36a0ea92b47315094 /include/linux | |
| parent | 939f9dd040fe1063d884f8f0f89b037093fe2341 (diff) | |
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 <[email protected]>
Cc: Jens Axboe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions