Re: [PATCH] md/raid5-ppl: Use atomic64_inc_return() in ppl_new_iounit()

From: Artur Paszkiewicz
Date: Tue Oct 08 2024 - 04:19:35 EST


On 10/7/24 10:48, Uros Bizjak wrote:
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: Song Liu <song@xxxxxxxxxx>
Cc: Yu Kuai <yukuai3@xxxxxxxxxx>

Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx>