Re: [PATCH 3/6] drm/gem: use new ww_mutex_(un)lock_for_each macros

2019-06-14 Thread Daniel Vetter
On Fri, Jun 14, 2019 at 08:51:11PM +0200, Christian König wrote: > Am 14.06.19 um 20:24 schrieb Daniel Vetter: > > > > On Fri, Jun 14, 2019 at 8:10 PM Christian König > > wrote: > > > [SNIP] > > > WW_MUTEX_LOCK_BEGIN() > > > > > > lock(lru_lock); > > > > > > while (bo = list_first(lru)) { > >

Re: [PATCH 3/6] drm/gem: use new ww_mutex_(un)lock_for_each macros

2019-06-14 Thread Peter Zijlstra
On Fri, Jun 14, 2019 at 02:41:22PM +0200, Christian König wrote: > Use the provided macros instead of implementing deadlock handling on our own. > > Signed-off-by: Christian König > --- > drivers/gpu/drm/drm_gem.c | 49 ++- > 1 file changed, 12 insertions(+),