projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6e0d30
)
security: tomoyo: simplify the gc kthread creation
author
Mike Danese
<
[email protected]
>
Fri, 20 May 2016 04:37:53 +0000
(21:37 -0700)
committer
James Morris
<
[email protected]
>
Mon, 6 Jun 2016 10:23:55 +0000
(20:23 +1000)
The code is doing the equivalent of the kthread_run macro.
Signed-off-by: Mike Danese <
[email protected]
>
Acked-by: Tetsuo Handa <
[email protected]
>
Signed-off-by: James Morris <
[email protected]
>
security/tomoyo/gc.c
patch
|
blob
|
history
diff --git
a/security/tomoyo/gc.c
b/security/tomoyo/gc.c
index 986a6a75686843f4a6afeed9b6492650db79d055..540bc29e1b5a72ffaba56fab5ca4060a5d5705a1 100644
(file)
--- a/
security/tomoyo/gc.c
+++ b/
security/tomoyo/gc.c
@@
-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");
}