Messages in this thread | | | Date | Mon, 30 Jan 2012 14:46:01 +0100 | From | Oleg Nesterov <> | Subject | Re: [PATCH 3/3] staging: android: lowmemorykiller: Drop tasklist_lock usage |
| |
On 01/30, Anton Vorontsov wrote: > > @@ -132,8 +134,8 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc) > } > selected_oom_adj = min_adj; > > - read_lock(&tasklist_lock); > - for_each_process(p) { > + for_each_tgid(ns, iter) {
This makes force_sig() below unsafe, it can race with the exiting task.
Oleg.
| |