diff options
author | Keith Busch <[email protected]> | 2023-01-05 12:51:46 -0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-01-29 15:18:33 -0700 |
commit | c9c77418a98273fe96835c42666f7427b3883f48 (patch) | |
tree | ab45a1f2d1e3491b68a6baf62661e7ca4f2f68a8 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 0a26f327e46c203229e72c823dfec71a2b405ec5 (diff) |
block: save user max_sectors limit
The user can set the max_sectors limit to any valid value via sysfs
/sys/block/<dev>/queue/max_sectors_kb attribute. If the device limits
are ever rescanned, though, the limit reverts back to the potentially
artificially low BLK_DEF_MAX_SECTORS value.
Preserve the user's setting as the max_sectors limit as long as it's
valid. The user can reset back to defaults by writing 0 to the sysfs
file.
Signed-off-by: Keith Busch <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions