Re: [PATCH RFC 5/5] rcuwait: Replace rcu_assign_pointer() with WRITE_ONCE

2019-02-21 Thread Peter Zijlstra
On Thu, Feb 21, 2019 at 12:49:42AM -0500, Joel Fernandes (Google) wrote: > This suppresses a sparse error generated due to the recently added > rcu_assign_pointer sparse check below. It seems WRITE_ONCE should be > sufficient here. > > >> kernel//locking/percpu-rwsem.c:162:9: sparse: error:

[PATCH RFC 5/5] rcuwait: Replace rcu_assign_pointer() with WRITE_ONCE

2019-02-20 Thread Joel Fernandes (Google)
This suppresses a sparse error generated due to the recently added rcu_assign_pointer sparse check below. It seems WRITE_ONCE should be sufficient here. >> kernel//locking/percpu-rwsem.c:162:9: sparse: error: incompatible types in comparison expression (different address spaces) Signed-off-by: