diff options
author | Damien Le Moal <[email protected]> | 2024-06-11 11:36:37 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-06-15 20:42:20 -0600 |
commit | 7f91ccd8a608dbe39b97a6e43d635378d493f77e (patch) | |
tree | 68b830b1087146c31b22791f0fc1c8d1c1404c52 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | e21d12c7cd5cef8a6c5367f96aaab01249216ded (diff) |
dm: Call dm_revalidate_zones() after setting the queue limits
dm_revalidate_zones() is called from dm_set_zone_restrictions() when the
mapped device queue limits are not yet set. However,
dm_revalidate_zones() calls blk_revalidate_disk_zones() and this
function consults and modifies the mapped device queue limits. Thus,
currently, blk_revalidate_disk_zones() operates on limits that are not
yet initialized.
Fix this by moving the call to dm_revalidate_zones() out of
dm_set_zone_restrictions() and into dm_table_set_restrictions() after
executing queue_limits_set().
To further cleanup dm_set_zones_restrictions(), the message about the
type of zone append (native or emulated) is also moved inside
dm_revalidate_zones().
Fixes: 1c0e720228ad ("dm: use queue_limits_set")
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Benjamin Marzinski <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions