From: Keith Busch <kbusch@kernel.org> Date: 2020-08-07 16:32:44
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>
---
v1->v2: Fixed the if condition to check for *not* zoned.
drivers/nvme/host/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Christoph Hellwig <hch@lst.de> Date: 2020-08-10 12:33:23
On Fri, Aug 07, 2020 at 09:32:35AM -0700, Keith Busch wrote:
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.
Instead of skipping shouldn't we use the max of noiob and the zone
size, even if that is mostly theoretical?
quoted hunk
Signed-off-by: Keith Busch <kbusch@kernel.org>
---
v1->v2: Fixed the if condition to check for *not* zoned.
drivers/nvme/host/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Keith Busch <kbusch@kernel.org> Date: 2020-08-10 14:56:33
On Mon, Aug 10, 2020 at 02:33:13PM +0200, Christoph Hellwig wrote:
On Fri, Aug 07, 2020 at 09:32:35AM -0700, Keith Busch wrote:
quoted
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.
Instead of skipping shouldn't we use the max of noiob and the zone
size, even if that is mostly theoretical?
No, I don't think so. If noiob is larger, we'll return the wrong value
for blk_queue_zone_sectors() and blkdev_nr_zones(), which will have
undesirable consequences.
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
From: Christoph Hellwig <hch@lst.de> Date: 2020-08-14 06:28:54
On Mon, Aug 10, 2020 at 07:56:22AM -0700, Keith Busch wrote:
On Mon, Aug 10, 2020 at 02:33:13PM +0200, Christoph Hellwig wrote:
quoted
On Fri, Aug 07, 2020 at 09:32:35AM -0700, Keith Busch wrote:
quoted
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.
Instead of skipping shouldn't we use the max of noiob and the zone
size, even if that is mostly theoretical?
No, I don't think so. If noiob is larger, we'll return the wrong value
for blk_queue_zone_sectors() and blkdev_nr_zones(), which will have
undesirable consequences.
Then we at least need to warn about a larger noiob. And add a
comment that we are ignoring it deliberately.
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
On Fri, Aug 07, 2020 at 09:32:35AM -0700, Keith Busch wrote:
quoted
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.
Instead of skipping shouldn't we use the max of noiob and the zone
size, even if that is mostly theoretical?
No, I don't think so. If noiob is larger, we'll return the wrong value
for blk_queue_zone_sectors() and blkdev_nr_zones(), which will have
undesirable consequences.
Then we at least need to warn about a larger noiob. And add a
comment that we are ignoring it deliberately.
I'm fine with that, Keith if you agree you can send a patch
and I'll fold it into the original one.
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme