kobject: show debug info on delayed kobject release
authorFengguang Wu <fengguang.wu@intel.com>
Wed, 9 Oct 2013 01:26:21 +0000 (09:26 +0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Oct 2013 20:56:52 +0000 (13:56 -0700)
commit0ff18e3734c248fa516b4be942b1196832ee936c
treea978c59f375936c7e37c67a61dc08821a5e674bb
parentf715729ee4cb666f51749f6cd86d06fff1e6e17b
kobject: show debug info on delayed kobject release

Useful for locating buggy drivers on kernel oops.

It may add dozens of new lines to boot dmesg. DEBUG_KOBJECT_RELEASE is
hopefully only enabled in debug kernels (like maybe the Fedora rawhide
one, or at developers), so being a bit more verbose is likely ok.

Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/kobject.c