[PATCH 0/2] uprobes: kill xol_area->slot_count

From: Oleg Nesterov
Date: Tue Oct 01 2024 - 10:25:02 EST


Hello,

On top of

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

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(-)