Commit 9d20653
Mike Snitzer
dm: simplify bio-based IO accounting further
Now that io splitting is recorded prior to, or during, ->map IO
accounting can happen immediately rather than defer until after
bio splitting in dm_split_and_process_bio().
Remove the DM_IO_START_ACCT flag and also remove dm_io's map_task
member because there is no longer any need to wait for splitting to
occur before accounting.
Also move dm_io struct's 'flags' member to consolidate struct holes.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>1 parent ec21163 commit 9d20653
2 files changed
Lines changed: 6 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | 263 | | |
265 | | - | |
266 | | - | |
267 | 264 | | |
268 | 265 | | |
269 | 266 | | |
| |||
281 | 278 | | |
282 | 279 | | |
283 | 280 | | |
284 | | - | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
600 | 599 | | |
601 | 600 | | |
602 | 601 | | |
| |||
1241 | 1240 | | |
1242 | 1241 | | |
1243 | 1242 | | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | 1243 | | |
1252 | 1244 | | |
1253 | 1245 | | |
| |||
1262 | 1254 | | |
1263 | 1255 | | |
1264 | 1256 | | |
1265 | | - | |
1266 | | - | |
1267 | 1257 | | |
1268 | 1258 | | |
1269 | 1259 | | |
| |||
1272 | 1262 | | |
1273 | 1263 | | |
1274 | 1264 | | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
| 1265 | + | |
1281 | 1266 | | |
1282 | | - | |
| 1267 | + | |
1283 | 1268 | | |
| 1269 | + | |
1284 | 1270 | | |
1285 | 1271 | | |
1286 | 1272 | | |
| |||
1340 | 1326 | | |
1341 | 1327 | | |
1342 | 1328 | | |
1343 | | - | |
| 1329 | + | |
1344 | 1330 | | |
1345 | 1331 | | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
| 1332 | + | |
1353 | 1333 | | |
1354 | 1334 | | |
1355 | 1335 | | |
| |||
1667 | 1647 | | |
1668 | 1648 | | |
1669 | 1649 | | |
1670 | | - | |
1671 | 1650 | | |
1672 | 1651 | | |
1673 | 1652 | | |
| |||
1679 | 1658 | | |
1680 | 1659 | | |
1681 | 1660 | | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | 1661 | | |
1686 | 1662 | | |
1687 | 1663 | | |
| |||
0 commit comments