diff options
| author | Damien Le Moal <[email protected]> | 2021-01-28 13:47:27 +0900 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-02-10 07:44:40 -0700 |
| commit | 73d90386b559d6f4c3c5db5e6bb1b68aae8fd3e7 (patch) | |
| tree | 5d555eec23ce82c95f71a15c7ae310ce49810bfa /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | f1836426cea77fad342aa74bec8bf489a5d64b27 (diff) | |
nvme: cleanup zone information initialization
For a zoned namespace, in nvme_update_ns_info(), call
nvme_update_zone_info() after executing nvme_update_disk_info() so that
the namespace queue logical and physical block size limits are set.
This allows setting the namespace queue max_zone_append_sectors limit
in nvme_update_zone_info() instead of nvme_revalidate_zones(),
simplifying this function. Also use blk_queue_set_zoned() to set the
namespace zoned model.
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions