From: Greg Kroah-Hartman 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(+) --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -460,6 +460,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); }