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:
3534160
)
staging: android/lowmemorykiller: Do not kill kernel threads
author
Anton Vorontsov
<
[email protected]
>
Mon, 6 Feb 2012 16:30:01 +0000
(20:30 +0400)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 9 Feb 2012 00:55:46 +0000
(16:55 -0800)
LMK should not try killing kernel threads.
Suggested-by: Oleg Nesterov <
[email protected]
>
Reviewed-by: Oleg Nesterov <
[email protected]
>
Signed-off-by: Anton Vorontsov <
[email protected]
>
Acked-by: KOSAKI Motohiro <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/android/lowmemorykiller.c
patch
|
blob
|
history
diff --git
a/drivers/staging/android/lowmemorykiller.c
b/drivers/staging/android/lowmemorykiller.c
index 6e800d35ebdaf7032233bb8bcb839700d66985d0..ae38c39a152500eee8f3729cdfe03ed7dfeeb57d 100644
(file)
--- a/
drivers/staging/android/lowmemorykiller.c
+++ b/
drivers/staging/android/lowmemorykiller.c
@@
-138,6
+138,9
@@
static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)
struct task_struct *p;
int oom_adj;
+ if (tsk->flags & PF_KTHREAD)
+ continue;
+
p = find_lock_task_mm(tsk);
if (!p)
continue;