[Linux-cachefs] [PATCH 2/4] fscache: Fix race in fscache_op_complete() due to split atomic_sub & read

David Howells dhowells at redhat.com
Wed Oct 17 15:32:13 UTC 2018


Andrea Parri <andrea.parri at amarulasolutions.com> wrote:

> > Fix this by using atomic_sub_return() instead of two calls.
> 
> Seems a case for atomic_sub_return_relaxed()... why not?

Ummm...  In that case, should it be atomic_sub_return_release()?

David




More information about the Linux-cachefs mailing list