aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-qcom-common.c
diff options
context:
space:
mode:
authorMathieu Desnoyers <[email protected]>2025-03-27 13:29:45 +0000
committerIngo Molnar <[email protected]>2025-04-03 11:10:47 +0000
commit169eae7711ea4b745e2d33d53e7b88689b10e1a0 (patch)
tree45d215f2e3589e49b89a3339d1c64371319d8747 /drivers/pci/controller/dwc/pcie-qcom-common.c
parentsched/isolation: Make CONFIG_CPU_ISOLATION depend on CONFIG_SMP (diff)
downloadkernel-169eae7711ea4b745e2d33d53e7b88689b10e1a0.tar.gz
kernel-169eae7711ea4b745e2d33d53e7b88689b10e1a0.zip
rseq: Eliminate useless task_work on execve
Eliminate a useless task_work on execve by moving the call to rseq_set_notify_resume() from sched_mm_cid_after_execve() to the error path of bprm_execve(). The call to rseq_set_notify_resume() from sched_mm_cid_after_execve() is pointless in the success case, because rseq_execve() will clear the rseq pointer before returning to userspace. sched_mm_cid_after_execve() is called from both the success and error paths of bprm_execve(). The call to rseq_set_notify_resume() is needed on error because the mm_cid may have changed. Also move the rseq_execve() to right after sched_mm_cid_after_execve() in bprm_execve(). [ mingo: Merged to a recent upstream kernel, extended the changelog. ] Signed-off-by: Mathieu Desnoyers <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions