Re: [Intel-gfx] [PATCH 3/4] drm/i915: Refactor common lock handling between shrinker count/scan

2014-05-19 Thread Barbalho, Rafael
-Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of Chris Wilson Sent: Tuesday, March 25, 2014 1:23 PM To: intel-gfx@lists.freedesktop.org Cc: Hugh Dickins Subject: [Intel-gfx] [PATCH 3/4] drm/i915: Refactor common lock handling between

[Intel-gfx] [PATCH 3/4] drm/i915: Refactor common lock handling between shrinker count/scan

2014-03-25 Thread Chris Wilson
We can share a few lines of tricky lock handling we need to use for both shrinker routines and in the process fix the return value for count() when reporting a deadlock. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_gem.c | 42