diff options
author | Shaohua Li <shli@fb.com> | 2017-08-19 01:08:13 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-08-23 23:56:33 +0200 |
commit | ea0ea2bc6dd8923d86a0fa98743dbeed98645486 (patch) | |
tree | 462c57a8375b3c19d642d11dc43344a6f7aecab7 /crypto/internal.h | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc (diff) | |
download | linux-ea0ea2bc6dd8923d86a0fa98743dbeed98645486.tar.xz linux-ea0ea2bc6dd8923d86a0fa98743dbeed98645486.zip |
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>
Diffstat (limited to 'crypto/internal.h')
0 files changed, 0 insertions, 0 deletions