diff options
| author | Johannes Berg <[email protected]> | 2007-11-14 17:00:16 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-11-14 18:45:43 -0800 |
| commit | 60a0d23386eab0559ad32ae50b200cc58545f327 (patch) | |
| tree | e80067693fe0600ae8cbb0b550b84ab22f43c4fe /include/linux/memory_hotplug.h | |
| parent | c642b8391cf8efc3622cc97329a0f46e7cbb70b8 (diff) | |
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 <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Alan Stern <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/memory_hotplug.h')
0 files changed, 0 insertions, 0 deletions