Commit 82733d1
committed
io_uring: stop using io_wq_work as an fd placeholder
There are two reasons why this isn't the best idea:
- It's an odd area to grab a bit of storage space, hence it's an odd area
to grab storage from.
- It puts the 3rd io_kiocb cacheline into the hot path, where normal hot
path just needs the first two.
Use 'cflags' for joint fd/cflags storage. We only need fd until we
successfully issue, and we only need cflags once a request is done and is
completed.
Fixes: 6bf9c47 ("io_uring: defer file assignment")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 2804ecd commit 82733d1
2 files changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
910 | | - | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
911 | 915 | | |
912 | 916 | | |
913 | 917 | | |
| |||
7090 | 7094 | | |
7091 | 7095 | | |
7092 | 7096 | | |
7093 | | - | |
| 7097 | + | |
7094 | 7098 | | |
7095 | | - | |
| 7099 | + | |
7096 | 7100 | | |
7097 | 7101 | | |
7098 | 7102 | | |
| |||
7630 | 7634 | | |
7631 | 7635 | | |
7632 | 7636 | | |
7633 | | - | |
| 7637 | + | |
7634 | 7638 | | |
7635 | 7639 | | |
7636 | 7640 | | |
| |||
0 commit comments