aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorMing Lin <[email protected]>2015-10-22 16:59:42 +0000
committerJens Axboe <[email protected]>2015-10-28 00:12:58 +0000
commita22c4d7e34402ccdf3414f64c50365436eba7b93 (patch)
tree2d71db7c04930b5f88f4745cb6c8d5c59cf33075 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentMerge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm (diff)
downloadkernel-a22c4d7e34402ccdf3414f64c50365436eba7b93.tar.gz
kernel-a22c4d7e34402ccdf3414f64c50365436eba7b93.zip
block: re-add discard_granularity and alignment checks
In commit b49a087("block: remove split code in blkdev_issue_{discard,write_same}"), discard_granularity and alignment checks were removed. Ideally, with bio late splitting, the upper layers shouldn't need to depend on device's limits. Christoph reported a discard regression on the HGST Ultrastar SN100 NVMe device when mkfs.xfs. We have not found the root cause yet. This patch re-adds discard_granularity and alignment checks by reverting the related changes in commit b49a087. The good thing is now we can remove the 2G discard size cap and just use UINT_MAX to avoid bi_size overflow. Reviewed-by: Christoph Hellwig <[email protected]> Tested-by: Christoph Hellwig <[email protected]> Signed-off-by: Ming Lin <[email protected]> Reviewed-by: Mike Snitzer <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions