Re: [PATCH 0/2] ucount: Fix and improve atomic_long_inc_below

From: Eric W. Biederman
Date: Fri Jul 15 2022 - 14:25:38 EST


Uros Bizjak <ubizjak@xxxxxxxxx> writes:

> The series fixes wrong argument type and improves atomic_long_inc_below
> by using atomic_long_try_cmpxchg instead of atomic_long_cmpxchg.
>
> Signed-off-by: Uros Bizjak <ubizjak@xxxxxxxxx>
> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>

The bug fix at least looks correct. I haven't reviewed the
atomic_long_try_cmpxchg yet.

Thanks,
Eric


>
> Uros Bizjak (2):
> ucount: Fix atomic_long_inc_below argument type
> ucount: Use atomic_long_try_cmpxchg in atomic_long_inc_below
>
> kernel/ucount.c | 16 +++++++---------
> 1 file changed, 7 insertions(+), 9 deletions(-)