diff options
| author | Ming Lei <[email protected]> | 2018-10-29 12:57:17 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-11-09 13:23:14 +0000 |
| commit | 1adfc5e4136f5967d591c399aff95b3b035f16b7 (patch) | |
| tree | 8721fafeef167a567a2fe7838071e0f17e01d02c /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | Revert "nvmet-rdma: use a private workqueue for delete" (diff) | |
| download | kernel-1adfc5e4136f5967d591c399aff95b3b035f16b7.tar.gz kernel-1adfc5e4136f5967d591c399aff95b3b035f16b7.zip | |
block: make sure discard bio is aligned with logical block size
Obviously the created discard bio has to be aligned with logical block size.
This patch introduces the helper of bio_allowed_max_sectors() for
this purpose.
Cc: [email protected]
Cc: Mike Snitzer <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Xiao Ni <[email protected]>
Cc: Mariusz Dabrowski <[email protected]>
Fixes: 744889b7cbb56a6 ("block: don't deal with discard limit in blkdev_issue_discard()")
Fixes: a22c4d7e34402cc ("block: re-add discard_granularity and alignment checks")
Reported-by: Rui Salvaterra <[email protected]>
Tested-by: Rui Salvaterra <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
