Skip to content

Commit 03dec72

Browse files
mbizonfreeboxJoseph Salisbury
authored andcommitted
workqueue: fix dev_set_uevent_suppress() imbalance
BugLink: http://bugs.launchpad.net/bugs/1356913 commit bddbceb upstream. Uevents are suppressed during attributes registration, but never restored, so kobject_uevent() does nothing. Signed-off-by: Maxime Bizon <mbizon@freebox.fr> Signed-off-by: Tejun Heo <tj@kernel.org> Fixes: 226223a Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
1 parent 6475957 commit 03dec72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/workqueue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3415,6 +3415,7 @@ int workqueue_sysfs_register(struct workqueue_struct *wq)
34153415
}
34163416
}
34173417

3418+
dev_set_uevent_suppress(&wq_dev->dev, false);
34183419
kobject_uevent(&wq_dev->dev.kobj, KOBJ_ADD);
34193420
return 0;
34203421
}

0 commit comments

Comments
 (0)