Commit 2e02f9e
io_uring/rsrc: improve regbuf iov validation
Deduplicate io_buffer_validate() calls by moving the checks into
io_sqe_buffer_register(). Now we also don't need special handling in
io_buffer_validate() passing through buffer removal requests. I also
was using it as a cleanup before some other changes.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 046fcc8 commit 2e02f9e
1 file changed
Lines changed: 10 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 99 | | |
114 | 100 | | |
115 | 101 | | |
| |||
319 | 305 | | |
320 | 306 | | |
321 | 307 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 308 | | |
326 | 309 | | |
327 | 310 | | |
| |||
790 | 773 | | |
791 | 774 | | |
792 | 775 | | |
793 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
794 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
795 | 787 | | |
796 | 788 | | |
797 | 789 | | |
| |||
897 | 889 | | |
898 | 890 | | |
899 | 891 | | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | 892 | | |
904 | 893 | | |
905 | 894 | | |
| |||
0 commit comments