Commit 989bcd6
ublk: remove io_cmds list in ublk_queue
The current I/O dispatch mechanism - queueing I/O by adding it to the
io_cmds list (and poking task_work as needed), then dispatching it in
ublk server task context by reversing io_cmds and completing the
io_uring command associated to each one - was introduced by commit
7d4a931 ("ublk_drv: don't forward io commands in reserve order")
to ensure that the ublk server received I/O in the same order that the
block layer submitted it to ublk_drv. This mechanism was only needed for
the "raw" task_work submission mechanism, since the io_uring task work
wrapper maintains FIFO ordering (using quite a similar mechanism in
fact). The "raw" task_work submission mechanism is no longer supported
in ublk_drv as of commit 29dc5d0 ("ublk: kill queuing request by
task_work_add"), so the explicit llist/reversal is no longer needed - it
just duplicates logic already present in the underlying io_uring APIs.
Remove it.
Signed-off-by: Uday Shankar <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent e1a0202 commit 989bcd6
1 file changed
+11
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | | - | |
146 | | - | |
147 | 143 | | |
148 | 144 | | |
149 | 145 | | |
| |||
1108 | 1104 | | |
1109 | 1105 | | |
1110 | 1106 | | |
1111 | | - | |
| 1107 | + | |
1112 | 1108 | | |
1113 | 1109 | | |
1114 | 1110 | | |
| |||
1154 | 1150 | | |
1155 | 1151 | | |
1156 | 1152 | | |
1157 | | - | |
1158 | | - | |
| 1153 | + | |
| 1154 | + | |
1159 | 1155 | | |
1160 | | - | |
1161 | | - | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1162 | 1161 | | |
1163 | 1162 | | |
1164 | 1163 | | |
| |||
1233 | 1232 | | |
1234 | 1233 | | |
1235 | 1234 | | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | 1235 | | |
1256 | 1236 | | |
1257 | | - | |
| 1237 | + | |
1258 | 1238 | | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
| 1239 | + | |
1264 | 1240 | | |
1265 | 1241 | | |
1266 | 1242 | | |
| |||
1453 | 1429 | | |
1454 | 1430 | | |
1455 | 1431 | | |
1456 | | - | |
| 1432 | + | |
1457 | 1433 | | |
1458 | 1434 | | |
1459 | 1435 | | |
| |||
0 commit comments