Hello,

On top of

        [PATCH 0/7] uprobes: deuglify xol_get_insn_slot/xol_free_insn_slot paths
        https://lore.kernel.org/all/20240929144201.ga9...@redhat.com/

To me this change looks like a simplification, but perhaps it can
also be considered as optimization.

Yes, in the contended case xol_get_slot_nr() will be called twice,
the second time after prepare_to_wait_event(), but I don't think it
can hurt in the slow path when the caller is likely going to sleep.

Oleg.
---

 kernel/events/uprobes.c | 38 +++++++++++++++++---------------------
 1 file changed, 17 insertions(+), 21 deletions(-)


Reply via email to