]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
slab, workqueue: remove keventd_up() usage
authorTejun Heo <tj@kernel.org>
Fri, 16 Sep 2016 19:49:34 +0000 (15:49 -0400)
committerTejun Heo <tj@kernel.org>
Sat, 17 Sep 2016 17:18:21 +0000 (13:18 -0400)
Now that workqueue can handle work item queueing from very early
during boot, there is no need to gate schedule_delayed_work_on() while
!keventd_up().  Remove it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
mm/slab.c

index b67271024135aff957f1361c3e327da41915b4c2..dc69b6b625b10643ac6e77431a2bf1c167daef2a 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -550,12 +550,7 @@ static void start_cpu_timer(int cpu)
 {
        struct delayed_work *reap_work = &per_cpu(slab_reap_work, cpu);
 
-       /*
-        * When this gets called from do_initcalls via cpucache_init(),
-        * init_workqueues() has already run, so keventd will be setup
-        * at that time.
-        */
-       if (keventd_up() && reap_work->work.func == NULL) {
+       if (reap_work->work.func == NULL) {
                init_reap_node(cpu);
                INIT_DEFERRABLE_WORK(reap_work, cache_reap);
                schedule_delayed_work_on(cpu, reap_work,