]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uprobes: pass utask to xol_get_insn_slot() and xol_free_insn_slot()
authorOleg Nesterov <oleg@redhat.com>
Sun, 29 Sep 2024 14:42:53 +0000 (16:42 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 7 Oct 2024 07:28:45 +0000 (09:28 +0200)
commitc5356ab1db28cafc448a50c26ba84442237abb98
treee07dfec4f5af6e085c89272a115a308c9d431d89
parent1cee988c1d21eabc936d1401811012522083e36f
uprobes: pass utask to xol_get_insn_slot() and xol_free_insn_slot()

Add the "struct uprobe_task *utask" argument to xol_get_insn_slot() and
xol_free_insn_slot(), their callers already have it so we can avoid the
unnecessary dereference and simplify the code.

Kill the "tsk" argument of xol_free_insn_slot(), it is always current.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240929144253.GA9487@redhat.com
kernel/events/uprobes.c