diff options
| author | 2019-11-11 11:43:20 +0000 | |
|---|---|---|
| committer | 2019-11-11 11:46:40 +0000 | |
| commit | fc4f125d958f4e8ce3477f990fb916fe1806daff (patch) | |
| tree | 6fe813c02cdf67e5c38bea49033dd677f2286411 /scripts/const_structs.checkpatch | |
| parent | drm/i915: Protect context while grabbing its name for the request (diff) | |
drm/i915/gem: Embed context/timeline name inside the GEM context
Use a small char buffer inside the i915_gem_context to store the user
friendly name so that ctx->name has the same lifetime as the RCU
protected GEM context. That is, e.g. when using print_request() that
prints the timeline name (ctx->name), the name will not be prematurely
freed upon the context being closed and the last reference dropped.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191111114323.5833-2-chris@chris-wilson.co.uk
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
