Commit b2d9c3d
io_uring: refactor io_arm_poll_handler()
gcc 11 goes a weird path and duplicates most of io_arm_poll_handler()
for READ and WRITE cases. Help it and move all pollin vs pollout
specific bits under a single if-else, so there is no temptation for this
kind of unfolding.
before vs after:
text data bss dec hex filename
85362 12650 8 98020 17ee4 ./fs/io_uring.o
85186 12650 8 97844 17e34 ./fs/io_uring.o
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1deea0037293a922a0358e2958384b2e42437885.1624739600.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 59b735a commit b2d9c3d
1 file changed
Lines changed: 16 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5172 | 5172 | | |
5173 | 5173 | | |
5174 | 5174 | | |
5175 | | - | |
| 5175 | + | |
5176 | 5176 | | |
5177 | 5177 | | |
5178 | 5178 | | |
5179 | 5179 | | |
5180 | 5180 | | |
5181 | 5181 | | |
5182 | | - | |
| 5182 | + | |
| 5183 | + | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
5184 | | - | |
| 5187 | + | |
| 5188 | + | |
| 5189 | + | |
| 5190 | + | |
| 5191 | + | |
| 5192 | + | |
| 5193 | + | |
5185 | 5194 | | |
5186 | | - | |
5187 | | - | |
| 5195 | + | |
| 5196 | + | |
| 5197 | + | |
5188 | 5198 | | |
5189 | 5199 | | |
5190 | 5200 | | |
| |||
5193 | 5203 | | |
5194 | 5204 | | |
5195 | 5205 | | |
5196 | | - | |
5197 | | - | |
5198 | 5206 | | |
5199 | | - | |
5200 | | - | |
5201 | | - | |
5202 | | - | |
5203 | | - | |
5204 | | - | |
5205 | | - | |
5206 | | - | |
5207 | | - | |
5208 | | - | |
5209 | | - | |
5210 | | - | |
5211 | | - | |
5212 | | - | |
| 5207 | + | |
5213 | 5208 | | |
5214 | 5209 | | |
5215 | 5210 | | |
| |||
0 commit comments