Re: [RFC PATCH 5/5] locking/rwsem: Remove reader optimistic spinning

From: Peter Zijlstra
Date: Fri Nov 20 2020 - 09:42:43 EST


On Tue, Nov 17, 2020 at 10:04:29PM -0500, Waiman Long wrote:
> -static inline bool osq_is_empty(struct rw_semaphore *sem)
> -{
> - return !osq_is_locked(&sem->osq);

> -static inline bool osq_is_empty(sem)
> -{
> - return false;
> -}

Oh, it doesn't live...