Re: [Intel-gfx] [PATCH 1/7] drm/i915: Introduce i915_address_space.mutex

2018-07-12 Thread Daniel Vetter
On Wed, Jul 11, 2018 at 10:49:51AM +0100, Chris Wilson wrote: > Quoting Daniel Vetter (2018-07-11 10:36:36) > > On Wed, Jul 11, 2018 at 11:33:26AM +0200, Daniel Vetter wrote: > > > On Wed, Jul 11, 2018 at 08:36:02AM +0100, Chris Wilson wrote: > > > > Add a mutex into struct i915_address_space to be

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Introduce i915_address_space.mutex

2018-07-11 Thread Chris Wilson
Quoting Daniel Vetter (2018-07-11 10:36:36) > On Wed, Jul 11, 2018 at 11:33:26AM +0200, Daniel Vetter wrote: > > On Wed, Jul 11, 2018 at 08:36:02AM +0100, Chris Wilson wrote: > > > Add a mutex into struct i915_address_space to be used while operating on > > > the vma and their lists for a particula

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Introduce i915_address_space.mutex

2018-07-11 Thread Daniel Vetter
On Wed, Jul 11, 2018 at 11:33:26AM +0200, Daniel Vetter wrote: > On Wed, Jul 11, 2018 at 08:36:02AM +0100, Chris Wilson wrote: > > Add a mutex into struct i915_address_space to be used while operating on > > the vma and their lists for a particular vm. As this may be called from > > the shrinker, w

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Introduce i915_address_space.mutex

2018-07-11 Thread Daniel Vetter
On Wed, Jul 11, 2018 at 08:36:02AM +0100, Chris Wilson wrote: > Add a mutex into struct i915_address_space to be used while operating on > the vma and their lists for a particular vm. As this may be called from > the shrinker, we taint the mutex with fs_reclaim so that from the start > lockdep warn

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Introduce i915_address_space.mutex

2018-07-11 Thread Daniel Vetter
On Wed, Jul 11, 2018 at 08:36:02AM +0100, Chris Wilson wrote: > Add a mutex into struct i915_address_space to be used while operating on > the vma and their lists for a particular vm. As this may be called from > the shrinker, we taint the mutex with fs_reclaim so that from the start > lockdep warn