Revert "drm/i915: Fix mutex->owner inspection race under DEBUG_MUTEXES"
The core fix was applied in commita63b03e2d2
Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Jan 6 10:29:35 2015 +0000 mutex: Always clear owner field upon mutex_unlock() (note the absence of stable@ tag) so we can now revert our band-aid commit226e5ae9e5
for -next. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
20e28fba48
commit
a50940510e
|
@ -5099,7 +5099,7 @@ static bool mutex_is_locked_by(struct mutex *mutex, struct task_struct *task)
|
||||||
if (!mutex_is_locked(mutex))
|
if (!mutex_is_locked(mutex))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#if defined(CONFIG_SMP) && !defined(CONFIG_DEBUG_MUTEXES)
|
#if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_MUTEXES)
|
||||||
return mutex->owner == task;
|
return mutex->owner == task;
|
||||||
#else
|
#else
|
||||||
/* Since UP may be pre-empted, we cannot assume that we own the lock */
|
/* Since UP may be pre-empted, we cannot assume that we own the lock */
|
||||||
|
|
Loading…
Reference in New Issue