Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8b7e1f6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ANDROID: Take reference to task_struct with in the rcu section"

parents 5645285c e8d0ad34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -737,6 +737,7 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)
		}

		task_lock(selected);
		get_task_struct(selected);
		send_sig(SIGKILL, selected, 0);
		if (selected->mm) {
			task_set_lmk_waiting(selected);
@@ -782,7 +783,6 @@ static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc)
		lowmem_deathpending_timeout = jiffies + HZ;
		rem += selected_tasksize;
		rcu_read_unlock();
		get_task_struct(selected);
		/* give the system time to free up the memory */
		msleep_interruptible(20);
		trace_almk_shrink(selected_tasksize, ret,