Repository navigation
Commit ea0ea2b
blk-throttle: cap discard request size
discard request usually is very big and easily use all bandwidth budget
of a cgroup. discard request size doesn't really mean the size of data
written, so it doesn't make sense to account it into bandwidth budget.
Jens pointed out treating the size 0 doesn't make sense too, because
discard request does have cost. But it's not easy to find the actual
cost. This patch simply makes the size one sector.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 6470812 commit ea0ea2b
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
385 | 393 | | |
386 | 394 | | |
387 | 395 | | |
| |||
934 | 942 | | |
935 | 943 | | |
936 | 944 | | |
| 945 | + | |
937 | 946 | | |
938 | 947 | | |
939 | 948 | | |
| |||
947 | 956 | | |
948 | 957 | | |
949 | 958 | | |
950 | | - | |
| 959 | + | |
951 | 960 | | |
952 | 961 | | |
953 | 962 | | |
954 | 963 | | |
955 | 964 | | |
956 | 965 | | |
957 | | - | |
| 966 | + | |
958 | 967 | | |
959 | 968 | | |
960 | 969 | | |
| |||
1034 | 1043 | | |
1035 | 1044 | | |
1036 | 1045 | | |
| 1046 | + | |
1037 | 1047 | | |
1038 | 1048 | | |
1039 | | - | |
| 1049 | + | |
1040 | 1050 | | |
1041 | | - | |
| 1051 | + | |
1042 | 1052 | | |
1043 | 1053 | | |
1044 | 1054 | | |
| |||
0 commit comments