Skip to content

Commit

Permalink
workqueue: fix dev_set_uevent_suppress() imbalance
Browse files Browse the repository at this point in the history
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]>
Cc: [email protected]
Fixes: 226223a
  • Loading branch information
mbizonfreebox authored and htejun committed Jun 23, 2014
1 parent ebe0618 commit bddbceb
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 @@ -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;
}
Expand Down

0 comments on commit bddbceb

Please sign in to comment.