Skip to content

io_uring futex cleanup and fix

Jens Axboe io-uring 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io_uring/futex: get rid of struct io_futex addr unionio_uring/futex.c+2 -50 replies
2/2io_uring/futex: mark wait requests as inflightio_uring/futex.c io_uring/io_uring.c io_uring/io_uring.h+11 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/2] io_uring futex cleanup and fix

Hi,

Patch 1 is just a cleanup that I came across while looking into an issue and patch 2 fixes and issue introduced in this merge window with io_uring futex handling. Patch 2 works around the fact that since:

commit 80367ad01d93ac781b0e1df246edaf006928002f

Author: Sebastian Andrzej Siewior <[email protected]>
Date:   Wed Apr 16 18:29:12 2025 +0200

futex: Add basic infrastructure for local task local hash

futex is reliant on ->mm staying alive for the duration of the futex or futexv wait requests, if those requests are using FUTEX2_PRIVATE. These types of futex requests use a per-task private hash queue, and will actively remove those at __mmput() time.

 io_uring/futex.c    | 11 ++++++-----
 io_uring/io_uring.c |  7 ++++++-
 io_uring/io_uring.h |  1 +
 3 files changed, 13 insertions(+), 6 deletions(-)
Signature · 1 line
Jens Axboe