security: tomoyo: simplify the gc kthread creation
Subsystems (2)
PATCH 1/1 security: tomoyo: simplify the gc kthread creation
The code is doing the equivalent of the kthread_run macro.
Signed-off-by Mike Danese <[email protected]>
--- security/tomoyo/gc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
security/tomoyo/gc.c +2 -7
@@ -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" ); }
Signature · 1 line
2.5.0
Quoted 3 lines · Mike Danese
The code is doing the equivalent of the
kthread_runmacro.Signed-off-by Mike Danese <[email protected]>
Acked-by Tetsuo Handa <[email protected]>
Quoted 26 lines
--- security/tomoyo/gc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)security/tomoyo/gc.c +2
-7@@ -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" ); }Signature · 1 line
2.5.0
James Morris
maintainerQuoted 6 lines · Tetsuo Handa
Quoted 3 lines · Mike Danese
The code is doing the equivalent of the
kthread_runmacro.Signed-off-by Mike Danese <[email protected]>Acked-by Tetsuo Handa <[email protected]>
Applied togit://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next
Signature · 2 lines
James Morris <[email protected]>