lockdep: remove task argument from debug_check_no_locks_held
authorColin Cross <ccross@android.com>
Mon, 6 May 2013 23:50:08 +0000 (23:50 +0000)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 22:38:03 +0000 (15:38 -0700)
commit0f7aff8620c7f70532937a236a12ded5f28cde91
tree2f784838ebe526af423b822fe907a4792e573e97
parent74f7d2064859a6c799e6ede20f2fc3b3f537cbdf
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.

Change-Id: Idbaf1332ce6c80dc49c1d31c324c7fbf210657c5
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>
include/linux/debug_locks.h
kernel/exit.c
kernel/lockdep.c