PCI: mvebu: Add local struct device pointers
[cascardo/linux.git] / security / tomoyo / gc.c
index 986a6a7..540bc29 100644 (file)
@@ -645,11 +645,6 @@ void tomoyo_notify_gc(struct tomoyo_io_buffer *head, const bool is_register)
                }
        }
        spin_unlock(&tomoyo_io_buffer_list_lock);
-       if (is_write) {
-               struct task_struct *task = kthread_create(tomoyo_gc_thread,
-                                                         NULL,
-                                                         "GC for TOMOYO");
-               if (!IS_ERR(task))
-                       wake_up_process(task);
-       }
+       if (is_write)
+               kthread_run(tomoyo_gc_thread, NULL, "GC for TOMOYO");
 }