Skip to content

Add support for shared io-wq backends

Jens Axboe io-uring 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 28 repliesSuperseded

Changes in v2 from the cover letter

- Use idr instead of ida, and use it for lookups too
- Rename IORING_SETUP_SHARED to IORING_SETUP_ATTACH_WQ
- Don't allow id specified without IORING_SETUP_ATTACH_WQ
- Use id=0 if we run out of idr space instead of failing
- id==0 is not allowed for attach

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4io-wq: make the io_wq ref countedfs/io-wq.c+10 -10 replies
2/4io-wq: add 'id' to io_wqfs/io-wq.c+24 -10 replies
3/4io-wq: allow lookup of existing io_wq with given idfs/io-wq.c fs/io-wq.h+46 -20 replies
4/4io_uring: add support for sharing kernel io-wq workqueuefs/io_uring.c include/uapi/linux/io_uring.h+20 -42 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHSET v2 0/4] Add support for shared io-wq backends

Here's v2 of the shared wq backend patchset. A few minor changes in terms of id validation, and a switch to using idr and also utilizing it for lookups.

Changes since v1:

- Use idr instead of ida, and use it for lookups too
- Rename IORING_SETUP_SHARED to IORING_SETUP_ATTACH_WQ
- Don't allow id specified without IORING_SETUP_ATTACH_WQ
- Use id=0 if we run out of idr space instead of failing
- id==0 is not allowed for attach

Signature · 1 line
Jens Axboe