kernel-ark/kernel/power
Johannes Berg 60a0d23386 hibernate: fix lockdep report
Lockdep reports a circular locking dependency in the hibernate code
because
 - during system boot hibernate code (from an initcall) locks pm_mutex
   and then a sysfs buffer mutex via name_to_dev_t
 - during regular operation hibernate code locks pm_mutex under a
   sysfs buffer mutex because it's called from sysfs methods.

The deadlock can never happen because during initcall invocation nothing
can write to sysfs yet. This removes the lockdep report by marking the
initcall locking as being in a different class.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-14 18:45:43 -08:00
..
console.c
disk.c hibernate: fix lockdep report 2007-11-14 18:45:43 -08:00
Kconfig
main.c
Makefile
pm.c
power.h Hibernation: Check if ACPI is enabled during restore in the right place 2007-10-18 14:37:20 -07:00
poweroff.c
process.c
snapshot.c trivial copy_data_pages() tidy up 2007-10-20 02:26:04 +02:00
swap.c
swsusp.c Hibernation: Check if ACPI is enabled during restore in the right place 2007-10-18 14:37:20 -07:00
user.c