Messages in this thread | | | From | Miklos Szeredi <> | Date | Fri, 10 May 2024 11:21:19 +0200 | Subject | Re: [PATCH] fuse: annotate potential data-race in num_background |
| |
On Thu, 9 May 2024 at 14:57, Breno Leitao <leitao@debian.org> 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
| |