Re: [Intel-gfx] [PATCH 46/73] drm/i915: Release vma when the handle is closed

2016-08-01 Thread Joonas Lahtinen
On ma, 2016-08-01 at 10:10 +0100, Chris Wilson wrote: > In order to prevent a leak of the vma on shared objects, we need to > hook into the object_close callback to destroy the vma on the object for > this file. However, if we destroyed that vma immediately we may cause > unexpected application

[Intel-gfx] [PATCH 46/73] drm/i915: Release vma when the handle is closed

2016-08-01 Thread Chris Wilson
In order to prevent a leak of the vma on shared objects, we need to hook into the object_close callback to destroy the vma on the object for this file. However, if we destroyed that vma immediately we may cause unexpected application stalls as we try to unbind a busy vma - hence we defer the