Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1484492 > unrolled thread

[PATCH 6/7] debugobj, workqueue: remove keventd_up() usage

Started byTejun Heo <tj@kernel.org>
First post2016-09-15 21:40 +0200
Last post2016-09-15 23:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 6/7] debugobj, workqueue: remove keventd_up() usage Tejun Heo <tj@kernel.org> - 2016-09-15 21:40 +0200
    Re: [PATCH 6/7] debugobj, workqueue: remove keventd_up() usage Thomas Gleixner <tglx@linutronix.de> - 2016-09-15 23:30 +0200

#1484492 — [PATCH 6/7] debugobj, workqueue: remove keventd_up() usage

FromTejun Heo <tj@kernel.org>
Date2016-09-15 21:40 +0200
Subject[PATCH 6/7] debugobj, workqueue: remove keventd_up() usage
Message-ID<shKFQ-2IM-31@gated-at.bofh.it>
Now that workqueue can handle work item queueing from very early
during boot, there is no need to gate schedule_work() while
!keventd_up().  Remove it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
Hello,

This change depends on an earlier workqueue patch and is followed by a
patch to remove keventd_up().  It'd be great if it can be routed
through the wq/for-4.9 branch.

Thanks.

 lib/debugobjects.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index a8e1260..8458ec9 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -199,7 +199,7 @@ static void free_object(struct debug_obj *obj)
 	 * initialized:
 	 */
 	if (obj_pool_free > ODEBUG_POOL_SIZE && obj_cache)
-		sched = keventd_up();
+		sched = 1;
 	hlist_add_head(&obj->node, &obj_pool);
 	obj_pool_free++;
 	obj_pool_used--;
-- 
2.7.4

[toc] | [next] | [standalone]


#1484553

FromThomas Gleixner <tglx@linutronix.de>
Date2016-09-15 23:30 +0200
Message-ID<shMoi-3TA-17@gated-at.bofh.it>
In reply to#1484492
On Thu, 15 Sep 2016, Tejun Heo wrote:
> Now that workqueue can handle work item queueing from very early
> during boot, there is no need to gate schedule_work() while
> !keventd_up().  Remove it.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Andrew Morton <akpm@linux-foundation.org>

Acked-by: Thomas Gleixner <tglx@linutronix.de>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web