Commit b16e920
committed
io_uring/rsrc: allow cloning at an offset
Right now buffer cloning is an all-or-nothing kind of thing - either the
whole table is cloned from a source to a destination ring, or nothing at
all.
However, it's not always desired to clone the whole thing. Allow for
the application to specify a source and destination offset, and a
number of buffers to clone. If the destination offset is non-zero, then
allocate sparse nodes upfront.
Signed-off-by: Jens Axboe <[email protected]>1 parent d50f94d commit b16e920
2 files changed
+30
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
723 | 726 | | |
724 | 727 | | |
725 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
930 | | - | |
| 930 | + | |
| 931 | + | |
931 | 932 | | |
| 933 | + | |
932 | 934 | | |
933 | | - | |
934 | 935 | | |
935 | 936 | | |
936 | 937 | | |
| |||
943 | 944 | | |
944 | 945 | | |
945 | 946 | | |
946 | | - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
947 | 963 | | |
948 | 964 | | |
949 | 965 | | |
950 | | - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
951 | 970 | | |
952 | 971 | | |
953 | 972 | | |
| |||
963 | 982 | | |
964 | 983 | | |
965 | 984 | | |
966 | | - | |
| 985 | + | |
| 986 | + | |
967 | 987 | | |
968 | 988 | | |
969 | 989 | | |
| |||
1018 | 1038 | | |
1019 | 1039 | | |
1020 | 1040 | | |
1021 | | - | |
| 1041 | + | |
1022 | 1042 | | |
1023 | 1043 | | |
1024 | 1044 | | |
| |||
0 commit comments