[PATCH 02/11] drm/i915: Release ctx->syncobj on final put, not on ctx close

2021-09-02 Thread Daniel Vetter
gem context refcounting is another exercise in least locking design it seems, where most things get destroyed upon context closure (which can race with anything really). Only the actual memory allocation and the locks survive while holding a reference. This tripped up Jason when reimplementing

[PATCH 02/11] drm/i915: Release ctx->syncobj on final put, not on ctx close

2021-08-13 Thread Daniel Vetter
gem context refcounting is another exercise in least locking design it seems, where most things get destroyed upon context closure (which can race with anything really). Only the actual memory allocation and the locks survive while holding a reference. This tripped up Jason when reimplementing