提交 40d27378 编写于 作者: M Mike Danese 提交者: James Morris

security: tomoyo: simplify the gc kthread creation

The code is doing the equivalent of the kthread_run macro.
Signed-off-by: NMike Danese <mikedanese@google.com>
Acked-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: NJames Morris <james.l.morris@oracle.com>
上级 d6e0d306
......@@ -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");
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册