Re: [PATCH] locking/seqlock: Propagate 'const' pointers within read-only methods, remove forced type casts
From: Oleg Nesterov
Date: Fri Oct 13 2023 - 12:26:17 EST
On 10/13, Ingo Molnar wrote:
>
> So create two wrapper variants instead: 'ptr' and 'const_ptr', and pick the
> right one for the codepaths that are const: read_seqcount_begin() and
> read_seqcount_retry().
>
> This cleans up type handling and allows the removal of all type forcing.
Too late, but nevertheless
Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>