diff options
| author | Yao Sang <sangyao@kylinos.cn> | 2026-05-28 15:36:01 +0800 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-06-02 05:30:59 -0700 |
| commit | 59c0517123f2757c41d7795f841bc4c836577d17 (patch) | |
| tree | e4ebf0ed80a34a7f164394c6c8ef49ec6da0e788 /include/linux/timerqueue_types.h | |
| parent | 0967074f6830718fd2597404ef119bddd0dbfd00 (diff) | |
nvme: refresh multipath head zoned limits from path limits
queue_limits_stack_bdev() updates the multipath head limits from the
path queue, but it does not propagate max_open_zones or
max_active_zones. As a result, a zoned multipath namespace head can
keep stale 0/0 values even after a ready path reports finite zoned
resource limits.
When refreshing the head limits in nvme_update_ns_info(), stack the
zoned resource limits directly after stacking the path queue limits.
Use min_not_zero() so the block layer's 0 value keeps its "no limit"
meaning while finite limits are combined conservatively.
This avoids advertising "no limit" on the multipath head while keeping
the zoned-limit handling local to the NVMe multipath update path.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Yao Sang <sangyao@kylinos.cn>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/linux/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions
