linux/drivers/md/dm-zone.c
Mikulas Patocka dec62b741a dm: use READ_ONCE in dm_blk_report_zones
[ Upstream commit e9f5a55b70 ]

The functon dm_blk_report_zones reads md->zone_revalidate_map, however it
may change while the function is running. Use READ_ONCE.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: 37f53a2c60 ("dm: fix dm_blk_report_zones")
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:20:00 -05:00

480 lines
12 KiB