Commit 0f4b537
io_uring: introduce struct io_ctx_config
There will be more information needed during ctx setup, and instead of
passing a handful of pointers around, wrap them all into a new
structure. Add a helper for encapsulating all configuration checks and
preparation, that's also reused for ring resizing.
Note, it indirectly adds a io_uring_sanitise_params() check to ring
resizing, which is a good thing.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 929dbbb commit 0f4b537
3 files changed
Lines changed: 40 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3480 | 3480 | | |
3481 | 3481 | | |
3482 | 3482 | | |
3483 | | - | |
| 3483 | + | |
3484 | 3484 | | |
3485 | 3485 | | |
3486 | 3486 | | |
| |||
3545 | 3545 | | |
3546 | 3546 | | |
3547 | 3547 | | |
3548 | | - | |
3549 | | - | |
| 3548 | + | |
3550 | 3549 | | |
3551 | | - | |
3552 | | - | |
3553 | | - | |
| 3550 | + | |
3554 | 3551 | | |
3555 | 3552 | | |
3556 | 3553 | | |
3557 | 3554 | | |
3558 | 3555 | | |
3559 | 3556 | | |
3560 | 3557 | | |
3561 | | - | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
3562 | 3574 | | |
3563 | 3575 | | |
3564 | 3576 | | |
| |||
3631 | 3643 | | |
3632 | 3644 | | |
3633 | 3645 | | |
3634 | | - | |
| 3646 | + | |
3635 | 3647 | | |
3636 | 3648 | | |
3637 | 3649 | | |
| |||
3684 | 3696 | | |
3685 | 3697 | | |
3686 | 3698 | | |
3687 | | - | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
3688 | 3702 | | |
3689 | | - | |
| 3703 | + | |
3690 | 3704 | | |
3691 | 3705 | | |
3692 | | - | |
| 3706 | + | |
3693 | 3707 | | |
3694 | 3708 | | |
3695 | | - | |
3696 | | - | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
3697 | 3712 | | |
3698 | 3713 | | |
3699 | 3714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
139 | | - | |
| 144 | + | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
405 | | - | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
| 409 | + | |
| 410 | + | |
408 | 411 | | |
409 | 412 | | |
410 | 413 | | |
| |||
416 | 419 | | |
417 | 420 | | |
418 | 421 | | |
419 | | - | |
| 422 | + | |
420 | 423 | | |
421 | 424 | | |
422 | 425 | | |
| |||
0 commit comments