Re: [PATCH 5/5] locking/percpu-rwsem: Remove the embedded rwsem

From: Peter Zijlstra
Date: Tue Dec 17 2019 - 05:28:32 EST


On Mon, Nov 18, 2019 at 04:52:23PM -0500, Waiman Long wrote:
> On 11/13/19 5:21 AM, Peter Zijlstra wrote:
> > @@ -130,20 +131,12 @@ static inline void percpu_rwsem_release(
> > bool read, unsigned long ip)
> > {
> > lock_release(&sem->dep_map, ip);
> > -#ifdef CONFIG_RWSEM_SPIN_ON_OWNER
> > - if (!read)
> > - atomic_long_set(&sem->rw_sem.owner, RWSEM_OWNER_UNKNOWN);
> > -#endif
> > }
> >
>
> This is the only place that set RWSEM_OWNER_UNKNOWN. So you may as well
> remove all references to it:

Done, thanks!