mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
[PATCH] lockdep: rename DEBUG_WARN_ON()
Rename DEBUG_WARN_ON() to the less generic DEBUG_LOCKS_WARN_ON() name, so that it's clear that this is a lock-debugging internal mechanism. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
61f4c3d6db
commit
9e7f4d451e
4 changed files with 26 additions and 26 deletions
|
@ -183,8 +183,8 @@ __mutex_lock_common(struct mutex *lock, long state __IP_DECL__)
|
|||
|
||||
debug_mutex_free_waiter(&waiter);
|
||||
|
||||
DEBUG_WARN_ON(list_empty(&lock->held_list));
|
||||
DEBUG_WARN_ON(lock->owner != task->thread_info);
|
||||
DEBUG_LOCKS_WARN_ON(list_empty(&lock->held_list));
|
||||
DEBUG_LOCKS_WARN_ON(lock->owner != task->thread_info);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ __mutex_unlock_slowpath(atomic_t *lock_count __IP_DECL__)
|
|||
struct mutex *lock = container_of(lock_count, struct mutex, count);
|
||||
unsigned long flags;
|
||||
|
||||
DEBUG_WARN_ON(lock->owner != current_thread_info());
|
||||
DEBUG_LOCKS_WARN_ON(lock->owner != current_thread_info());
|
||||
|
||||
spin_lock_mutex(&lock->wait_lock, flags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue