diff options
| author | Oleg Nesterov <[email protected]> | 2006-09-29 09:00:52 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-09-29 16:18:18 +0000 |
| commit | 5b160f5ecd2f1b6df2e0015dc1f319c8ef803d62 (patch) | |
| tree | ff7f77b4178299146d6450f01f5d1da769c3fda9 /scripts/basic/docproc.c | |
| parent | [PATCH] reparent_to_init(): use has_rt_policy() (diff) | |
| download | kernel-5b160f5ecd2f1b6df2e0015dc1f319c8ef803d62.tar.gz kernel-5b160f5ecd2f1b6df2e0015dc1f319c8ef803d62.zip | |
[PATCH] copy_process: cosmetic ->ioprio tweak
copy_process:
// holds tasklist_lock + ->siglock
/*
* inherit ioprio
*/
p->ioprio = current->ioprio;
Why? ->ioprio was already copied in dup_task_struct(). I guess this is
needed to ensure that the child can't escape
sys_ioprio_set(IOPRIO_WHO_{PGRP,USER}), yes?
In that case we don't need ->siglock held, and the comment should be
updated.
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions
