umber-kernel/kernel/sched
Joel Fernandes db702ef6d9 sched/debug: Fix updating of ppos on server write ops
[ Upstream commit 6080fb211672aec6ce8f2f5a2e0b4eae736f2027 ]

Updating "ppos" on error conditions does not make much sense. The pattern
is to return the error code directly without modifying the position, or
modify the position on success and return the number of bytes written.

Since on success, the return value of apply is 0, there is no point in
modifying ppos either. Fix it by removing all this and just returning
error code or number of bytes written on success.

Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Juri Lelli <juri.lelli@redhat.com>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Acked-by: Tejun Heo <tj@kernel.org>
Tested-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/20260126100050.3854740-3-arighi@nvidia.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:19:43 -05:00
..
Makefile
autogroup.c
autogroup.h
build_policy.c
build_utility.c
clock.c
completion.c
core.c sched: Fix build for modules using set_tsk_need_resched() 2026-02-26 14:59:02 -08:00
core_sched.c
cpuacct.c
cpudeadline.c
cpudeadline.h
cpufreq.c
cpufreq_schedutil.c
cpupri.c
cpupri.h
cputime.c
deadline.c sched/deadline: Clear the defer params 2026-02-26 14:59:06 -08:00
debug.c sched/debug: Fix updating of ppos on server write ops 2026-03-04 07:19:43 -05:00
ext.c sched_ext: Fix SCX_KICK_WAIT to work reliably 2026-02-06 16:57:45 +01:00
ext.h
ext_idle.c
ext_idle.h
ext_internal.h sched_ext: Fix SCX_KICK_WAIT to work reliably 2026-02-06 16:57:45 +01:00
fair.c sched/fair: Have SD_SERIALIZE affect newidle balancing 2026-02-11 13:41:45 +01:00
features.h sched/fair: Proportional newidle balance 2026-01-11 15:26:19 +01:00
idle.c sched/fair: Fix pelt clock sync when entering idle 2026-01-30 10:32:20 +01:00
isolation.c
loadavg.c
membarrier.c
pelt.c
pelt.h
psi.c
rq-offsets.c
rt.c sched/rt: Skip currently executing CPU in rto_next_cpu() 2026-02-26 14:59:06 -08:00
sched-pelt.h
sched.h sched/fair: Proportional newidle balance 2026-01-11 15:26:19 +01:00
smp.h
stats.c
stats.h
stop_task.c
swait.c
syscalls.c sched: Deadline has dynamic priority 2026-01-23 11:21:23 +01:00
topology.c sched/fair: Proportional newidle balance 2026-01-11 15:26:19 +01:00
wait.c
wait_bit.c