kobject: delay kobject release for random time
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 6 Dec 2013 00:37:51 +0000 (17:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 05:14:13 +0000 (21:14 -0800)
commit89c86a64cd056e283323710c9ddf6f7090a450c8
tree44fc2cd43f9cffc0ecfd44295b2d16411b827b1c
parent2322392b020badfe49730f1529b9c1a15248c387
kobject: delay kobject release for random time

When CONFIG_DEBUG_KOBJECT_RELEASE=y, delay kobject release functions for a
random time between 1 and 8 seconds, which effectively changes the order in
which they're called.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/kobject.c