Commit 40d27378 authored by Mike Danese's avatar Mike Danese Committed by James Morris
Browse files

security: tomoyo: simplify the gc kthread creation

The code is doing the equivalent of the kthread_run macro.
Signed-off-by: default avatarMike Danese <>
Acked-by: default avatarTetsuo Handa <>
Signed-off-by: default avatarJames Morris <>
parent d6e0d306
......@@ -645,11 +645,6 @@ void tomoyo_notify_gc(struct tomoyo_io_buffer *head, const bool is_register)
if (is_write) {
struct task_struct *task = kthread_create(tomoyo_gc_thread,
"GC for TOMOYO");
if (!IS_ERR(task))
if (is_write)
kthread_run(tomoyo_gc_thread, NULL, "GC for TOMOYO");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment