Repository navigation
Commit 992da01
io_uring: change registration/upd/rsrc tagging ABI
There are ABI moments about recently added rsrc registration/update and
tagging that might become a nuisance in the future. First,
IORING_REGISTER_RSRC[_UPD] hide different types of resources under it,
so breaks fine control over them by restrictions. It works for now, but
once those are wanted under restrictions it would require a rework.
It was also inconvenient trying to fit a new resource not supporting
all the features (e.g. dynamic update) into the interface, so better
to return to IORING_REGISTER_* top level dispatching.
Second, register/update were considered to accept a type of resource,
however that's not a good idea because there might be several ways of
registration of a single resource type, e.g. we may want to add
non-contig buffers or anything more exquisite as dma mapped memory.
So, remove IORING_RSRC_[FILE,BUFFER] out of the ABI, and place them
internally for now to limit changes.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9b554897a7c17ad6e3becc48dfed2f7af9f423d5.1623339162.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 216e583 commit 992da01
2 files changed
Lines changed: 36 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
786 | 791 | | |
787 | 792 | | |
788 | 793 | | |
| |||
9911 | 9916 | | |
9912 | 9917 | | |
9913 | 9918 | | |
9914 | | - | |
| 9919 | + | |
9915 | 9920 | | |
9916 | 9921 | | |
9917 | 9922 | | |
9918 | 9923 | | |
9919 | 9924 | | |
9920 | 9925 | | |
9921 | 9926 | | |
9922 | | - | |
| 9927 | + | |
9923 | 9928 | | |
9924 | | - | |
| 9929 | + | |
9925 | 9930 | | |
9926 | 9931 | | |
9927 | 9932 | | |
9928 | | - | |
| 9933 | + | |
9929 | 9934 | | |
9930 | 9935 | | |
9931 | 9936 | | |
| |||
9936 | 9941 | | |
9937 | 9942 | | |
9938 | 9943 | | |
9939 | | - | |
| 9944 | + | |
9940 | 9945 | | |
9941 | 9946 | | |
9942 | | - | |
| 9947 | + | |
9943 | 9948 | | |
9944 | 9949 | | |
9945 | 9950 | | |
| |||
9961 | 9966 | | |
9962 | 9967 | | |
9963 | 9968 | | |
9964 | | - | |
9965 | | - | |
| 9969 | + | |
| 9970 | + | |
| 9971 | + | |
| 9972 | + | |
9966 | 9973 | | |
9967 | 9974 | | |
9968 | 9975 | | |
| |||
10088 | 10095 | | |
10089 | 10096 | | |
10090 | 10097 | | |
10091 | | - | |
10092 | | - | |
| 10098 | + | |
| 10099 | + | |
| 10100 | + | |
| 10101 | + | |
| 10102 | + | |
| 10103 | + | |
| 10104 | + | |
| 10105 | + | |
| 10106 | + | |
10093 | 10107 | | |
10094 | | - | |
10095 | | - | |
| 10108 | + | |
| 10109 | + | |
| 10110 | + | |
10096 | 10111 | | |
10097 | 10112 | | |
10098 | 10113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
303 | 307 | | |
304 | 308 | | |
305 | 309 | | |
| |||
312 | 316 | | |
313 | 317 | | |
314 | 318 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | 319 | | |
321 | | - | |
322 | 320 | | |
| 321 | + | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | 338 | | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
0 commit comments