]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Mark up potential allocation paths within i915_sw_fence as might_sleep
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Dec 2017 18:06:50 +0000 (18:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Dec 2017 13:17:37 +0000 (13:17 +0000)
commit0a9d85c0198b82133bcd8425c1cb59fe8a09f667
treeca30e6d3f902ca1fb70fe7bd444cbe1f90d4fd5a
parentbe5e498c47c24d709a881f162b3d18b40c1cd68d
drm/i915: Mark up potential allocation paths within i915_sw_fence as might_sleep

As kmalloc is allowed to block (if given the right flags), mark up the
two i915_sw_fence routines that may call kmalloc as potential sleeping
routines.

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