diff options
author | Mike Snitzer <snitzer@redhat.com> | 2018-07-20 14:57:38 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-07-24 14:46:39 -0600 |
commit | 42c9cdfe1e11e083dceb0f0c4977b758cf7403b9 (patch) | |
tree | c5f0822ca961b526f1a36d376bb469718f2c3fa9 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | c55183c9aaa00d2bbb578169a480e31aff3d397c (diff) |
block: allow max_discard_segments to be stacked
Set max_discard_segments to USHRT_MAX in blk_set_stacking_limits() so
that blk_stack_limits() can stack up this limit for stacked devices.
before:
$ cat /sys/block/nvme0n1/queue/max_discard_segments
256
$ cat /sys/block/dm-0/queue/max_discard_segments
1
after:
$ cat /sys/block/nvme0n1/queue/max_discard_segments
256
$ cat /sys/block/dm-0/queue/max_discard_segments
256
Fixes: 1e739730c5b9e ("block: optionally merge discontiguous discard bios into a single request")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions