summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2020-08-07 18:32:35 +0200
committerJens Axboe <axboe@kernel.dk>2020-08-22 01:14:27 +0200
commitc41ad98bebb8f4f0335b3c50dbb7583a6149dce4 (patch)
tree76758b6c1ba9cbc3f02652ed11ccb44e410849be /drivers/nvme/host
parentnvme-pci: fix PRP pool size (diff)
downloadlinux-c41ad98bebb8f4f0335b3c50dbb7583a6149dce4.tar.xz
linux-c41ad98bebb8f4f0335b3c50dbb7583a6149dce4.zip
nvme: skip noiob for zoned devices
Zoned block devices reuse the chunk_sectors queue limit to define zone boundaries. If a such a device happens to also report an optimal boundary, do not use that to define the chunk_sectors as that may intermittently interfere with io splitting and zone size queries. Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r--drivers/nvme/host/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 466c591c05e9..6c0d175f2ffa 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2075,7 +2075,7 @@ static int __nvme_revalidate_disk(struct gendisk *disk, struct nvme_id_ns *id)
}
}
- if (iob)
+ if (iob && !blk_queue_is_zoned(ns->queue))
blk_queue_chunk_sectors(ns->queue, rounddown_pow_of_two(iob));
nvme_update_disk_info(disk, ns, id);
#ifdef CONFIG_NVME_MULTIPATH