mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maxime Bizon <mbizon@freebox.fr>
To: Tejun Heo <tj@kernel.org>
Cc: linux-kernel@vger.kernel.org, Maxime Bizon <mbizon@freebox.fr>
Subject: [PATCH] workqueue: fix dev_set_uevent_suppress imbalance.
Date: Mon, 23 Jun 2014 16:35:35 +0200	[thread overview]
Message-ID: <1403534135-29241-1-git-send-email-mbizon@freebox.fr> (raw)

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

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 kernel/workqueue.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 6203d29..6f5f9c7 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;
 }
-- 
1.7.9.5


             reply	other threads:[~2014-06-23 14:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-23 14:35 Maxime Bizon [this message]
2014-06-23 18:42 ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403534135-29241-1-git-send-email-mbizon@freebox.fr \
    --to=mbizon@freebox.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®