Skip to content

Commit

Permalink
workqueue: fix dev_set_uevent_suppress() imbalance
Browse files Browse the repository at this point in the history
commit bddbceb upstream.

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

Signed-off-by: Maxime Bizon <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Fixes: 226223a
Signed-off-by: Jiri Slaby <[email protected]>
  • Loading branch information
mbizonfreebox authored and Jiri Slaby committed Jul 18, 2014
1 parent 376a57d commit 982170a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 982170a

Please sign in to comment.