Skip to content

Commit fd20bb5

Browse files
khueyingomolnar
authored andcommitted
perf/ring_buffer: Trigger IO signals for watermark_wakeup
perf_output_wakeup() already marks the perf event fd available for polling. Trigger IO signals with FASYNC too. Signed-off-by: Kyle Huey <khuey@kylehuey.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20240413141618.4160-3-khuey@kylehuey.com
1 parent 4a01398 commit fd20bb5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

kernel/events/ring_buffer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ static void perf_output_wakeup(struct perf_output_handle *handle)
2222
atomic_set(&handle->rb->poll, EPOLLIN);
2323

2424
handle->event->pending_wakeup = 1;
25+
26+
if (*perf_event_fasync(handle->event) && !handle->event->pending_kill)
27+
handle->event->pending_kill = POLL_IN;
28+
2529
irq_work_queue(&handle->event->pending_irq);
2630
}
2731

0 commit comments

Comments
 (0)