Re: [PATCH 1/3] btrfs: enumerate the type of exclusive operation in progress

Nikolay Borisov
2020-08-05T08:35:58Z

On 3.08.20 г. 23:29 ч., Goldwyn Rodrigues wrote:
> From: Goldwyn Rodrigues <rgoldwyn@suse.com>
>
> Instead of using a flag bit for exclusive operation, use an atomic_t
> variable to store if the exclusive operation is being performed.
> Introduce an API to start and finish an exclusive operation.
>
> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>

That's a simple replace, I worried that there might be differences in
the ordering constraints that atomic_cmpxchg offers since atomic_ops.rst
wasn't clear about it. But atomic_t.txt confirms that ordering semantics
are the same, so:

Reviewed-by: Nikolay Borisov <nborisov@suse.com>