Re: [PATCH 1/5] locking/percpu-rwsem, lockdep: Make percpu-rwsem use its own lockdep_map

From: Davidlohr Bueso
Date: Fri Nov 15 2019 - 15:43:27 EST


On Wed, 13 Nov 2019, Peter Zijlstra wrote:
@@ -37,7 +48,7 @@ static inline void percpu_down_read(stru
{
might_sleep();

- rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 0, _RET_IP_);
+ rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_);

Unrelated to this patch, but we also need a might_sleep() annotation
in percpu_down_write().

Thanks,
Davidlohr