Commit 200452f1 authored by Jani Nikula's avatar Jani Nikula

drm/i915/gem: use spinlock_t instead of struct spinlock

spinlock_t is one case where the typedef is to be preferred over struct
spinlock.

Fixes: 42fb60de ("drm/i915/gem: Don't leak non-persistent requests on changing engines")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200217184219.15325-1-jani.nikula@intel.com
parent 489645d5
...@@ -181,7 +181,7 @@ struct i915_gem_context { ...@@ -181,7 +181,7 @@ struct i915_gem_context {
char name[TASK_COMM_LEN + 8]; char name[TASK_COMM_LEN + 8];
struct { struct {
struct spinlock lock; spinlock_t lock;
struct list_head engines; struct list_head engines;
} stale; } stale;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment