diff options
author | Ken Chen <[email protected]> | 2008-08-20 14:09:17 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-08-20 15:40:32 -0700 |
commit | 2d70b68d42b5196a48ccb639e3797f097ef5bea3 (patch) | |
tree | b3040706cd69e0e7bc6d846e08fd91a441b34310 /net/lapb/lapb_subr.c | |
parent | 141d87e7debe3334018e46859c7565c44cebda65 (diff) |
fix setpriority(PRIO_PGRP) thread iterator breakage
When user calls sys_setpriority(PRIO_PGRP ...) on a NPTL style multi-LWP
process, only the task leader of the process is affected, all other
sibling LWP threads didn't receive the setting. The problem was that the
iterator used in sys_setpriority() only iteartes over one task for each
process, ignoring all other sibling thread.
Introduce a new macro do_each_pid_thread / while_each_pid_thread to walk
each thread of a process. Convert 4 call sites in {set/get}priority and
ioprio_{set/get}.
Signed-off-by: Ken Chen <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Roland McGrath <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions