Re: [openib-general] [PATCH] IB/uverbs: Fix lockdep warning when QP is created with 2 CQs

2006-08-16 Thread Arjan van de Ven
On Wed, 2006-08-16 at 09:43 -0700, Roland Dreier wrote: > Arjan, here's a case that disproves your rule of thumb that rwsems > are equivalent to mutexes as far as correctness goes: you can't have > an AB-BA deadlock with nested rwsems when using down_read(). In other > words, the following: > >

[openib-general] [PATCH] IB/uverbs: Fix lockdep warning when QP is created with 2 CQs

2006-08-16 Thread Roland Dreier
Arjan, here's a case that disproves your rule of thumb that rwsems are equivalent to mutexes as far as correctness goes: you can't have an AB-BA deadlock with nested rwsems when using down_read(). In other words, the following: down_read(&lock_1); d