Commit 59852eb
io_uring/rsrc: refactor io_import_fixed
io_import_fixed is a mess. Even though we know the final len of the
iterator, we still assign offset + len and do some magic after to
correct for that.
Do offset calculation first and finalise it with iov_iter_bvec at the
end.
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/2d5107fed24f8b23245ef2ede9a5a7f7c426df61.1744882081.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>1 parent 50169d0 commit 59852eb
1 file changed
+7
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
| 1040 | + | |
1040 | 1041 | | |
1041 | 1042 | | |
1042 | 1043 | | |
| |||
1056 | 1057 | | |
1057 | 1058 | | |
1058 | 1059 | | |
1059 | | - | |
1060 | | - | |
1061 | 1060 | | |
1062 | 1061 | | |
1063 | 1062 | | |
| |||
1067 | 1066 | | |
1068 | 1067 | | |
1069 | 1068 | | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | 1069 | | |
1077 | 1070 | | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
| 1071 | + | |
1082 | 1072 | | |
1083 | 1073 | | |
1084 | 1074 | | |
1085 | 1075 | | |
1086 | 1076 | | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
| 1077 | + | |
| 1078 | + | |
1092 | 1079 | | |
1093 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1094 | 1084 | | |
1095 | 1085 | | |
1096 | 1086 | | |
| |||
0 commit comments