Re: [PATCH] fuse: annotate potential data-race in num_background
From: Miklos Szeredi
Date: Fri May 10 2024 - 05:21:39 EST
On Thu, 9 May 2024 at 14:57, Breno Leitao <leitao@xxxxxxxxxx> wrote:
> Annotated the reader with READ_ONCE() and the writer with WRITE_ONCE()
> to avoid such complaint from KCSAN.
I'm not sure the write side part is really needed, since the lock is
properly protecting against concurrent readers/writers within the
locked region.
Does KCSAN still complain if you just add the READ_ONCE() to fuse_readahead()?
Thanks,
Miklos