Skip to content
Snippets Groups Projects
Commit 82733d16 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: stop using io_wq_work as an fd placeholder


There are two reasons why this isn't the best idea:

- It's an odd area to grab a bit of storage space, hence it's an odd area
  to grab storage from.
- It puts the 3rd io_kiocb cacheline into the hot path, where normal hot
  path just needs the first two.

Use 'cflags' for joint fd/cflags storage. We only need fd until we
successfully issue, and we only need cflags once a request is done and is
completed.

Fixes: 6bf9c47a ("io_uring: defer file assignment")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2804ecd8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment