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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Marco Elver <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 3a54654 commit 058244c
1 file changed
+5
-5
lines changed| 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