Commit 7cae596
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 <[email protected]>
Fixes: 97bbdc0 ("io_uring: add IORING_SETUP_SINGLE_ISSUER")
Signed-off-by: Jens Axboe <[email protected]>1 parent e775f93 commit 7cae596
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3357 | 3357 | | |
3358 | 3358 | | |
3359 | 3359 | | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
3360 | 3364 | | |
3361 | 3365 | | |
3362 | 3366 | | |
| |||
3548 | 3552 | | |
3549 | 3553 | | |
3550 | 3554 | | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
3551 | 3558 | | |
3552 | 3559 | | |
3553 | 3560 | | |
| |||
0 commit comments