summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorMaxime Bizon <mbizon@freebox.fr>2014-06-23 16:35:35 +0200
committerTejun Heo <tj@kernel.org>2014-06-23 14:40:49 -0400
commitbddbceb688c6d0decaabc7884fede319d02f96c8 (patch)
tree1b1a4023565b22b537562137d044851edf1d4d66 /kernel/workqueue.c
parentebe06187bf2aec10d537ce4595e416035367d703 (diff)
workqueue: fix dev_set_uevent_suppress() imbalance
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> Cc: stable@vger.kernel.org Fixes: 226223ab3c4118ddd10688cc2c131135848371ab
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 6203d290087..6f5f9c7323f 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -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;
}