ACPI / scan: Annotate physical_node_lock in acpi_scan_is_offline()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 17 Apr 2015 23:25:46 +0000 (01:25 +0200)
committerRafael J. Wysocki <rjw@rjwysocki.net>
Fri, 24 Apr 2015 00:16:03 +0000 (02:16 +0200)
commit4c533c801d1c9b5c38458a0e7516e0cf50643782
tree49c6c7b86071bf837792d6b8dc442ac2dde1fce8
parent5f2e3274e527ec52413b43b5a9b30422eda4cdd2
ACPI / scan: Annotate physical_node_lock in acpi_scan_is_offline()

acpi_scan_is_offline() may be called under the physical_node_lock
lock of the given device object's parent, so prevent lockdep from
complaining about that by annotating that instance with
SINGLE_DEPTH_NESTING.

Fixes: caa73ea158de (ACPI / hotplug / driver core: Handle containers in a special way)
Reported-and-tested-by: Xie XiuQi <xiexiuqi@huawei.com>
Reviewed-by: Toshi Kani <toshi.kani@hp.com>
Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c