mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
blkio-throttle: limit max iops value to UINT_MAX
- Limit max iops value to UINT_MAX and return error to user if value is more than that instead of accepting bigger values and truncating implicitly. Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
5e901a2b95
commit
9355aede5a
2 changed files with 10 additions and 4 deletions
|
|
@ -20,6 +20,9 @@ enum blkio_policy_id {
|
|||
BLKIO_POLICY_THROTL, /* Throttling */
|
||||
};
|
||||
|
||||
/* Max limits for throttle policy */
|
||||
#define THROTL_IOPS_MAX UINT_MAX
|
||||
|
||||
#if defined(CONFIG_BLK_CGROUP) || defined(CONFIG_BLK_CGROUP_MODULE)
|
||||
|
||||
#ifndef CONFIG_BLK_CGROUP
|
||||
|
|
|
|||
Loading…
Reference in a new issue