Commit 982170a3 authored by Maxime Bizon's avatar Maxime Bizon Committed by Jiri Slaby

workqueue: fix dev_set_uevent_suppress() imbalance

commit bddbceb6 upstream.

Uevents are suppressed during attributes registration, but never
restored, so kobject_uevent() does nothing.
Signed-off-by: default avatarMaxime Bizon <mbizon@freebox.fr>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Fixes: 226223abSigned-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 376a57d0
......@@ -3412,6 +3412,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment