livepatch: Skip task_call_func() for current task
authorJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 24 Feb 2023 16:49:59 +0000 (08:49 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 22 Mar 2023 16:09:28 +0000 (17:09 +0100)
commit383439d3d400d4c5a7ffb4495124adc6be6a05e2
treeb72ab5d6a2b8a28cd0d49dd21ebbbdb640d6feac
parente92606fa172f63a26054885b9715be86c643229d
livepatch: Skip task_call_func() for current task

The current task doesn't need the scheduler's protection to unwind its
own stack.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org>
Link: https://lore.kernel.org/r/4b92e793462d532a05f03767151fa29db3e68e13.1677257135.git.jpoimboe@kernel.org
kernel/livepatch/transition.c