drm/i915: Drop vma is-closed assertion on insert
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 09:31:57 +0000 (09:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 17:30:20 +0000 (17:30 +0000)
commit2f0003089bc75baeb0a19719fe892f6adc62cbde
tree492fe3925cb44951f854ab55e1efece57818a1bc
parent61231f6bd0565ad8539e425dc48d547702e40930
drm/i915: Drop vma is-closed assertion on insert

The is-closed flag may be added after we have acquired the vma under the
ctx->mutex, but will not take effect until after we release the
vm->mutex. i.e. the flag may be set on the vma as attempt to bind it and
that will cause the vma to be unbound later after we unpin it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200303093157.1153887-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c