]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Shrink the request kmem_cache on allocation error
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Jan 2018 14:46:57 +0000 (14:46 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Jan 2018 21:13:38 +0000 (21:13 +0000)
commitaf9bc54711b1e9c69998a7f3e094c68bcdc519f7
tree5ee4872226b41f6aaaeb0eef2584bbf08e889afb
parent25de81aada02f100e5c7708860e4ce8e65de771f
drm/i915: Shrink the request kmem_cache on allocation error

If we fail to allocate a new request, make sure we recover the pages
that are in the process of being freed by inserting an RCU barrier.

v2: Comment before the shrink and barrier in the error path.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180119144657.22606-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c