Commit b2676e1
dm writecache: count number of blocks written, not number of write bios
Change dm-writecache, so that it counts the number of blocks written
instead of the number of write bios. Bios can be split and requeued
using the dm_accept_partial_bio function, so counting bios caused
inaccurate results.
Fixes: e3a35d0 ("dm writecache: add event counters")
Reported-by: Yu Kuai <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>1 parent 2c6e755 commit b2676e1
File tree
2 files changed
+14
-8
lines changed- Documentation/admin-guide/device-mapper
- drivers/md
2 files changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1416 | 1419 | | |
1417 | 1420 | | |
1418 | 1421 | | |
| |||
1428 | 1431 | | |
1429 | 1432 | | |
1430 | 1433 | | |
1431 | | - | |
1432 | | - | |
| 1434 | + | |
| 1435 | + | |
1433 | 1436 | | |
| 1437 | + | |
1434 | 1438 | | |
1435 | 1439 | | |
1436 | 1440 | | |
| |||
1454 | 1458 | | |
1455 | 1459 | | |
1456 | 1460 | | |
1457 | | - | |
1458 | 1461 | | |
1459 | 1462 | | |
| 1463 | + | |
| 1464 | + | |
1460 | 1465 | | |
1461 | 1466 | | |
1462 | 1467 | | |
| |||
1470 | 1475 | | |
1471 | 1476 | | |
1472 | 1477 | | |
| 1478 | + | |
1473 | 1479 | | |
1474 | 1480 | | |
1475 | 1481 | | |
| |||
0 commit comments