Re: [PATCH 1/2] futex: Use atomic64_inc_return() in get_inode_sequence_number()

From: André Almeida
Date: Thu Oct 10 2024 - 14:08:54 EST


Em 10/10/2024 04:10, Uros Bizjak escreveu:
Use atomic64_inc_return(&ref) instead of atomic64_add_return(1, &ref)
to use optimized implementation and ease register pressure around
the primitive for targets that implement optimized variant.

Signed-off-by: Uros Bizjak <ubizjak@xxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Darren Hart <dvhart@xxxxxxxxxxxxx>
Cc: Davidlohr Bueso <dave@xxxxxxxxxxxx>
Cc: "André Almeida" <andrealmeid@xxxxxxxxxx>
---

Reviewed-by: André Almeida <andrealmeid@xxxxxxxxxx>