diff options
author | Hong-Mei Li <a21834@motorola.com> | 2015-06-01 18:58:42 -0700 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-13 14:47:38 +1000 |
commit | 8f5f33a7fd66e85d8d8502b5ee9c1c731ff0aeb5 (patch) | |
tree | 1227468de4d3ed8e716800da7113511edee8d41e /kernel/padata.c | |
parent | 51ec83132ab250883b0a1393dd73cbfdb92226cb (diff) | |
download | kernel_samsung_smdk4412-8f5f33a7fd66e85d8d8502b5ee9c1c731ff0aeb5.zip kernel_samsung_smdk4412-8f5f33a7fd66e85d8d8502b5ee9c1c731ff0aeb5.tar.gz kernel_samsung_smdk4412-8f5f33a7fd66e85d8d8502b5ee9c1c731ff0aeb5.tar.bz2 |
fs: avoid adding non-thread-group task to LMK rbtree
To maintain the task adj RB tree, we add a task to the RB tree when fork,
and delete it when exit. The place is exactly the same as the linear
p->tasks list, say, nly when the task is thread_group_leader.
When task group_leader is changing, we make sure to add the new leader
into RB tree after its leader flag is set, task->exit_signal.
Cherry-picked from (CR): http://gerrit.mot.com/753419/
Change-Id: I8da47998510e531188feb067b491e92306be9414
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
Reviewed-on: http://gerrit.mot.com/753419
SLTApproved: Slta Waiver <sltawvr@motorola.com>
SME-Granted: SME Approvals Granted
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Zhi-Ming Yuan <a14194@motorola.com>
Reviewed-by: Yi-Wei Zhao <gbjc64@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Reviewed-on: http://gerrit.mot.com/766106
Reviewed-by: Sudharsan Yettapu <sudharsan.yettapu@motorola.com>
Reviewed-by: Ravikumar Vembu <raviv@motorola.com>
(cherry picked from commit e9e92d64142625981490dd5c323aa08467d349e8)
Reviewed-on: http://gerrit.mot.com/768301
Conflicts:
fs/exec.c
Diffstat (limited to 'kernel/padata.c')
0 files changed, 0 insertions, 0 deletions