diff options
| author | Mike Snitzer <[email protected]> | 2018-07-20 14:57:38 -0400 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-07-24 14:46:39 -0600 |
| commit | 42c9cdfe1e11e083dceb0f0c4977b758cf7403b9 (patch) | |
| tree | c5f0822ca961b526f1a36d376bb469718f2c3fa9 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| 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 <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions