[PATCH 1/2] block: initialize max_hw_zone_append_sectors in blk_set_stacking_limits
Christoph Hellwig
hch at lst.de
Tue Nov 5 07:48:11 PST 2024
Because max_zone_append_sectors is now just derived from it.
Fixes: 2a8f6153e1c2 ("block: pre-calculate max_zone_append_sectors")
Reported-by: Yi Zhang <yi.zhang at redhat.com>
Signed-off-by: Christoph Hellwig <hch at lst.de>
---
block/blk-settings.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/blk-settings.c b/block/blk-settings.c
index 5cb69d85af0e..7d6b296997c2 100644
--- a/block/blk-settings.c
+++ b/block/blk-settings.c
@@ -50,7 +50,7 @@ void blk_set_stacking_limits(struct queue_limits *lim)
lim->max_sectors = UINT_MAX;
lim->max_dev_sectors = UINT_MAX;
lim->max_write_zeroes_sectors = UINT_MAX;
- lim->max_zone_append_sectors = UINT_MAX;
+ lim->max_hw_zone_append_sectors = UINT_MAX;
lim->max_user_discard_sectors = UINT_MAX;
}
EXPORT_SYMBOL(blk_set_stacking_limits);
--
2.45.2
More information about the Linux-nvme
mailing list