aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2023-03-28 01:56:18 +0000
committerJens Axboe <[email protected]>2023-03-28 13:09:01 +0000
commit005308f7bdacf5685ed1a431244a183dbbb9e0e8 (patch)
treeda80bb93629ab5e4c2063313002e20f633fa2d99 /tools/perf/builtin-annotate.c
parentio_uring/rsrc: fix null-ptr-deref in io_file_bitmap_get() (diff)
downloadkernel-005308f7bdacf5685ed1a431244a183dbbb9e0e8.tar.gz
kernel-005308f7bdacf5685ed1a431244a183dbbb9e0e8.zip
io_uring/poll: clear single/double poll flags on poll arming
Unless we have at least one entry queued, then don't call into io_poll_remove_entries(). Normally this isn't possible, but if we retry poll then we can have ->nr_entries cleared again as we're setting it up. If this happens for a poll retry, then we'll still have at least REQ_F_SINGLE_POLL set. io_poll_remove_entries() then thinks it has entries to remove. Clear REQ_F_SINGLE_POLL and REQ_F_DOUBLE_POLL unconditionally when arming a poll request. Fixes: c16bda37594f ("io_uring/poll: allow some retries for poll triggering spuriously") Cc: [email protected] Reported-by: Pengfei Xu <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions