Skip to content
Commit 40c7fd3f authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Jens Axboe
Browse files

block: Fix sys_ioprio_set(.which=IOPRIO_WHO_PGRP) task iteration



do_each_pid_thread() { } while_each_pid_thread() is a double loop and
thus break doesn't work as expected. Also, it should be used under
tasklist_lock because otherwise we can race against change_pid() for
PGID/SID.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/YG7Q5C4Rb5dx5GFx@hirez.programming.kicks-ass.net


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3212135a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment