[PATCH] reservation: sprinkle some WARN_ON()s

2016-06-04 Thread Daniel Vetter
On Thu, Apr 07, 2016 at 08:52:56PM -0400, Rob Clark wrote: > A bit overkill since, for example, the rcu_dereference_protected() in > reservation_object_get_list() will WARN. But this is much less subtle > for folks reading the code. > > v2: use reservation_object_held() instead of ww_mutex_is_loc

[PATCH] reservation: sprinkle some WARN_ON()s

2016-06-04 Thread Rob Clark
On Sat, Jun 4, 2016 at 8:52 AM, Daniel Vetter wrote: > On Thu, Apr 07, 2016 at 08:52:56PM -0400, Rob Clark wrote: >> A bit overkill since, for example, the rcu_dereference_protected() in >> reservation_object_get_list() will WARN. But this is much less subtle >> for folks reading the code. >> >>

[PATCH] reservation: sprinkle some WARN_ON()s

2016-04-07 Thread Rob Clark
A bit overkill since, for example, the rcu_dereference_protected() in reservation_object_get_list() will WARN. But this is much less subtle for folks reading the code. v2: use reservation_object_held() instead of ww_mutex_is_locked() Signed-off-by: Rob Clark --- drivers/dma-buf/reservation.c |