[Intel-gfx] [PATCH v2 1/5] drm/i915: Wait for struct_mutex inside shrinker
Chris Wilson
chris at chris-wilson.co.uk
Wed May 24 15:38:47 UTC 2017
On Wed, May 24, 2017 at 06:31:10PM +0300, Joonas Lahtinen wrote:
> On ke, 2017-05-24 at 15:55 +0100, Chris Wilson wrote:
> > On Wed, May 24, 2017 at 03:39:37PM +0100, Chris Wilson wrote:
> > >
> > > Having resolved whether or not we would deadlock upon a call to
> > > mutex_lock(&dev->struct_mutex), we can then wait for the contended
> > > struct_mutex if we are not the owner. This should significantly improve
> > > the chance of running the shrinker for other processes whilst the GPU is
> > > busy.
> > >
> > > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > > Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> >
> > Scratch this, cyclic deadlocks with the reclaim locks instead. If BAT
> > doesn't pick this up, I'll be woried.
>
> Whole series or just this patch?
Just this patch is buggy (as far as I am aware).
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list