Skip to contentSkip to conversation

workqueue: fix dev_set_uevent_suppress imbalance.

PATCH Applied Maxime Bizon 2 participants 2 messages Jun 23, 2014 Workqueue

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 workqueue: fix dev_set_uevent_suppress imbalance.

Uevents are suppressed during attributes registration, but never restored, so kobject_uevent() does nothing.

---
 kernel/workqueue.c |    1 +
 1 file changed, 1 insertion(+)
kernel/workqueue.c +1 -0
index 6203d29..6f5f9c7 100644
@@ -3284,6 +3284,7 @@ int workqueue_sysfs_register(struct workqueue_struct *wq)
 		}
 	}
 
+	dev_set_uevent_suppress(&wq_dev->dev, false);
 	kobject_uevent(&wq_dev->dev.kobj, KOBJ_ADD);
 	return 0;
 }
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 4 lines · Maxime Bizon

Uevents are suppressed during attributes registration, but never restored, so kobject_uevent() does nothing.

Applied to wq/for-3.16-fixes.

Thanks.

Signature · 1 line
tejun