summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks/inc_not_zero
AgeCommit message (Expand)Author
2023-06-05locking/atomic: scripts: simplify raw_atomic*() definitionsMark Rutland
2023-06-05locking/atomic: scripts: restructure fallback ifdefferyMark Rutland
2023-06-05locking/atomic: remove fallback commentsMark Rutland
2021-07-16locking/atomic: remove ARCH_ATOMIC remanantsMark Rutland
2020-06-11locking/atomics: Flip fallbacks and instrumentationPeter Zijlstra
2020-06-11asm-generic/atomic: Use __always_inline for fallback wrappersMarco Elver
2018-11-01locking/atomics: Fix scripts/atomic/ script permissionsIngo Molnar
2018-11-01locking/atomics: Add common header generation filesMark Rutland
lls value we got at the end of this lookup is * not the expected one, we must restart lookup. * We probably met an item that was moved to another chain. */ if (get_nulls_value(node) != hash) goto begin; if (result) { if (unlikely(!atomic_inc_not_zero(&result->sk_refcnt))) result = NULL; else if (unlikely(compute_score(result, net, saddr, hnum, sport, daddr, dport, dif) < badness)) { sock_put(result); goto begin; } } rcu_read_unlock(); return result; Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: David S. Miller <davem@davemloft.net>