summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2022-07-14 19:32:55 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-09-11 21:55:07 -0700
commit693fc06e98514c2d5951ead4aca40cf8b21100b1 (patch)
tree442f100b654ab0af29f2e068850c0d88eb1fbe5f /net
parentaa06a9bd853306c239f759018fb227d7e8f4e203 (diff)
epoll: use try_cmpxchg in list_add_tail_lockless
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in list_add_tail_lockless. 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. Link: https://lkml.kernel.org/r/20220714173255.12987-1-ubizjak@gmail.com Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions