Commit 058244c
perf: Move irq_work_queue() where the event is prepared.
Only if perf_event::pending_sigtrap is zero, the irq_work accounted by
increminging perf_event::nr_pending. The member perf_event::pending_addr
might be overwritten by a subsequent event if the signal was not yet
delivered and is expected. The irq_work will not be enqeueued again
because it has a check to be only enqueued once.
Move irq_work_queue() to where the counter is incremented and
perf_event::pending_sigtrap is set to make it more obvious that the
irq_work is scheduled once.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Marco Elver <elver@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20240704170424.1466941-2-bigeasy@linutronix.de1 parent 3a54654 commit 058244c
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9727 | 9727 | | |
9728 | 9728 | | |
9729 | 9729 | | |
| 9730 | + | |
| 9731 | + | |
| 9732 | + | |
| 9733 | + | |
| 9734 | + | |
9730 | 9735 | | |
9731 | 9736 | | |
9732 | 9737 | | |
| |||
9742 | 9747 | | |
9743 | 9748 | | |
9744 | 9749 | | |
9745 | | - | |
9746 | | - | |
9747 | | - | |
9748 | | - | |
9749 | | - | |
9750 | 9750 | | |
9751 | 9751 | | |
9752 | 9752 | | |
| |||
0 commit comments