aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/locking/mutex.c')
-rw-r--r--kernel/locking/mutex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c
index 1a81a1257b3f..3f8a35104285 100644
--- a/kernel/locking/mutex.c
+++ b/kernel/locking/mutex.c
@@ -389,7 +389,7 @@ static bool __ww_mutex_wound(struct mutex *lock,
389 /* 389 /*
390 * wake_up_process() paired with set_current_state() 390 * wake_up_process() paired with set_current_state()
391 * inserts sufficient barriers to make sure @owner either sees 391 * inserts sufficient barriers to make sure @owner either sees
392 * it's wounded in __ww_mutex_lock_check_stamp() or has a 392 * it's wounded in __ww_mutex_check_kill() or has a
393 * wakeup pending to re-read the wounded state. 393 * wakeup pending to re-read the wounded state.
394 */ 394 */
395 if (owner != current) 395 if (owner != current)
@@ -946,7 +946,6 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
946 } 946 }
947 947
948 debug_mutex_lock_common(lock, &waiter); 948 debug_mutex_lock_common(lock, &waiter);
949 debug_mutex_add_waiter(lock, &waiter, current);
950 949
951 lock_contended(&lock->dep_map, ip); 950 lock_contended(&lock->dep_map, ip);
952 951