From 64d1d062f70af1c1ff73abb3b9a55a1823318a52 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 24 Apr 2008 12:39:13 +1000 Subject: Make put_device() warn that it will sleep This makes scsi emit messages all over the place... But it's something that we need to fix up. Signed-off-by: Greg Kroah-Hartman --- drivers/base/core.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/base') diff --git a/drivers/base/core.c b/drivers/base/core.c index 9248e0927d08..b53d4aa603ba 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -465,6 +465,7 @@ EXPORT_SYMBOL_GPL(device_create_bin_file); */ void device_remove_bin_file(struct device *dev, struct bin_attribute *attr) { + /* might_sleep(); */ if (dev) sysfs_remove_bin_file(&dev->kobj, attr); } -- cgit v1.2.3