Commit bd5bbda
io_uring: fix miscounting ios_left
io_req_init() doesn't decrement state->ios_left if a request doesn't
need ->file, it just returns before that on if(!needs_file). That's
not really a problem but may cause overhead for an additional fput().
Also inline and kill io_req_set_file() as it's of no use anymore.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 6e1271e commit bd5bbda
1 file changed
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6327 | 6327 | | |
6328 | 6328 | | |
6329 | 6329 | | |
6330 | | - | |
6331 | | - | |
6332 | | - | |
6333 | | - | |
6334 | | - | |
6335 | | - | |
6336 | | - | |
6337 | | - | |
6338 | | - | |
6339 | 6330 | | |
6340 | 6331 | | |
6341 | 6332 | | |
| |||
6748 | 6739 | | |
6749 | 6740 | | |
6750 | 6741 | | |
6751 | | - | |
6752 | | - | |
| 6742 | + | |
| 6743 | + | |
| 6744 | + | |
| 6745 | + | |
| 6746 | + | |
| 6747 | + | |
| 6748 | + | |
| 6749 | + | |
| 6750 | + | |
6753 | 6751 | | |
6754 | | - | |
6755 | 6752 | | |
6756 | 6753 | | |
6757 | 6754 | | |
| |||
0 commit comments