diff options
author | 2013-05-06 23:50:08 +0000 | |
---|---|---|
committer | 2013-05-12 14:16:21 +0200 | |
commit | 1b1d2fb4444231f25ddabc598aa2b5a9c0833fba (patch) | |
tree | 106d73850732ddfbf9b4acce05497d9435f7b698 /kernel/exit.c | |
parent | freezer: add unsafe versions of freezable helpers for CIFS (diff) | |
download | linux-1b1d2fb4444231f25ddabc598aa2b5a9c0833fba.tar.gz linux-1b1d2fb4444231f25ddabc598aa2b5a9c0833fba.tar.bz2 linux-1b1d2fb4444231f25ddabc598aa2b5a9c0833fba.zip |
lockdep: remove task argument from debug_check_no_locks_held
The only existing caller to debug_check_no_locks_held calls it
with 'current' as the task, and the freezer needs to call
debug_check_no_locks_held but doesn't already have a current
task pointer, so remove the argument. It is already assuming
that the current task is relevant by dumping the current stack
trace as part of the warning.
This was originally part of 6aa9707099c (lockdep: check that
no locks held at freeze time) which was reverted in
dbf520a9d7d4.
Original-author: Mandeep Singh Baines <msb@chromium.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index af2eb3cbd499..e59756275000 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -835,7 +835,7 @@ void do_exit(long code) /* * Make sure we are holding no locks: */ - debug_check_no_locks_held(tsk); + debug_check_no_locks_held(); /* * We can do this unlocked here. The futex code uses this flag * just to verify whether the pi state cleanup has been done |