diff options
| author | Peter Zijlstra <[email protected]> | 2016-12-21 08:05:02 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-01-14 10:30:01 +0000 |
| commit | da9647e076d440190fff4b4ee0f4b829dd6e8c4f (patch) | |
| tree | 7bedc99c5a41500084b0ef26673cb64ab751de0e /fs/jbd2/commit.c | |
| parent | sched/deadline: Show leftover runtime and abs deadline in /proc/*/sched (diff) | |
| download | kernel-da9647e076d440190fff4b4ee0f4b829dd6e8c4f.tar.gz kernel-da9647e076d440190fff4b4ee0f4b829dd6e8c4f.zip | |
sched/completions: Fix complete_all() semantics
Documentation/scheduler/completion.txt says this about complete_all():
"calls complete_all() to signal all current and future waiters."
Which doesn't strictly match the current semantics. Currently
complete_all() is equivalent to UINT_MAX/2 complete() invocations,
which is distinctly less than 'all current and future waiters'
(enumerable vs innumerable), although it has worked in practice.
However, Dmitry had a weird case where it might matter, so change
completions to use saturation semantics for complete()/complete_all().
Once done hits UINT_MAX (and complete_all() sets it there) it will
never again be decremented.
Requested-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
