diff options
author | Dylan Yudaken <dylany@fb.com> | 2022-09-26 20:09:25 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-26 20:26:18 +0300 |
commit | 7cae596bc31f900bb72492ff40c7f5addf72fa19 (patch) | |
tree | 9d9168b5820b727353aade8cdc9479eaefe9a344 /io_uring/poll.c | |
parent | e775f93f2ab976a2cdb4a7b53063cbe890904f73 (diff) | |
download | linux-7cae596bc31f900bb72492ff40c7f5addf72fa19.tar.xz |
io_uring: register single issuer task at creation
Instead of picking the task from the first submitter task, rather use the
creator task or in the case of disabled (IORING_SETUP_R_DISABLED) the
enabling task.
This approach allows a lot of simplification of the logic here. This
removes init logic from the submission path, which can always be a bit
confusing, but also removes the need for locking to write (or read) the
submitter_task.
Users that want to move a ring before submitting can create the ring
disabled and then enable it on the submitting task.
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Fixes: 97bbdc06a444 ("io_uring: add IORING_SETUP_SINGLE_ISSUER")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/poll.c')
0 files changed, 0 insertions, 0 deletions