Commit 29c1ac2
io_uring: keep sendrecv flags in ioprio
We waste a u64 SQE field for flags even though we don't need as many
bits and it can be used for something more useful later. Store io_uring
specific send/recv flags in sqe->ioprio instead of ->addr2.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Fixes: 0455d4c ("io_uring: add POLL_FIRST support for send/sendmsg and recv/recvmsg")
[axboe: change comment in io_uring.h as well]
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 386e4fb commit 29c1ac2
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1183 | 1183 | | |
1184 | 1184 | | |
1185 | 1185 | | |
| 1186 | + | |
1186 | 1187 | | |
1187 | 1188 | | |
1188 | 1189 | | |
| |||
1191 | 1192 | | |
1192 | 1193 | | |
1193 | 1194 | | |
| 1195 | + | |
1194 | 1196 | | |
1195 | 1197 | | |
1196 | 1198 | | |
| |||
1266 | 1268 | | |
1267 | 1269 | | |
1268 | 1270 | | |
| 1271 | + | |
1269 | 1272 | | |
1270 | 1273 | | |
1271 | 1274 | | |
1272 | 1275 | | |
1273 | 1276 | | |
1274 | 1277 | | |
1275 | 1278 | | |
| 1279 | + | |
1276 | 1280 | | |
1277 | 1281 | | |
1278 | 1282 | | |
| |||
6075 | 6079 | | |
6076 | 6080 | | |
6077 | 6081 | | |
6078 | | - | |
| 6082 | + | |
6079 | 6083 | | |
6080 | 6084 | | |
6081 | 6085 | | |
6082 | 6086 | | |
6083 | | - | |
| 6087 | + | |
6084 | 6088 | | |
6085 | 6089 | | |
6086 | 6090 | | |
| |||
6311 | 6315 | | |
6312 | 6316 | | |
6313 | 6317 | | |
6314 | | - | |
| 6318 | + | |
6315 | 6319 | | |
6316 | 6320 | | |
6317 | 6321 | | |
6318 | 6322 | | |
6319 | | - | |
| 6323 | + | |
6320 | 6324 | | |
6321 | 6325 | | |
6322 | 6326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
0 commit comments