]> Pileus Git - ~andy/linux/blobdiff - lib/Kconfig.debug
Merge tag 'arc-v3.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
[~andy/linux] / lib / Kconfig.debug
index c971f3ae95e54cfb969d063f88736c471216ef4c..652bea9054f06e71e551dade71ae8b3b90d964d3 100644 (file)
@@ -981,6 +981,25 @@ config DEBUG_KOBJECT
          If you say Y here, some extra kobject debugging messages will be sent
          to the syslog. 
 
+config DEBUG_KOBJECT_RELEASE
+       bool "kobject release debugging"
+       depends on DEBUG_KERNEL
+       help
+         kobjects are reference counted objects.  This means that their
+         last reference count put is not predictable, and the kobject can
+         live on past the point at which a driver decides to drop it's
+         initial reference to the kobject gained on allocation.  An
+         example of this would be a struct device which has just been
+         unregistered.
+
+         However, some buggy drivers assume that after such an operation,
+         the memory backing the kobject can be immediately freed.  This
+         goes completely against the principles of a refcounted object.
+
+         If you say Y here, the kernel will delay the release of kobjects
+         on the last reference count to improve the visibility of this
+         kind of kobject release bug.
+
 config HAVE_DEBUG_BUGVERBOSE
        bool