[Intel-gfx] [PATCH 2/3] drm/i915: Allows contexts to be unreferenced locklessly
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Thu Mar 30 12:57:33 UTC 2017
On ke, 2017-03-29 at 19:28 +0100, Chris Wilson wrote:
> If we move the actual cleanup of the context to a worker, we can allow
> the final free to be called from any context and avoid undue latency in
> the caller.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
<SNIP>
> +static void free_contexts(struct work_struct *work)
> +{
> + struct drm_i915_private *dev_priv =
> + container_of(work, struct drm_i915_private, contexts.free_work);
typeof(*dev_priv)? or maybe even *i915 if you dare.
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list