]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm: use READ_ONCE in dm_blk_report_zones
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 8 Jan 2026 19:56:20 +0000 (20:56 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 14 Jan 2026 12:12:21 +0000 (13:12 +0100)
commite9f5a55b70ae6187ab64ef2d1232ae2738e31d1f
tree12866cda6c72adde88fee3c0a07731d2994e176a
parent24c405fdbe215c45e57bba672cc42859038491ee
dm: use READ_ONCE in dm_blk_report_zones

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: 37f53a2c60d0 ("dm: fix dm_blk_report_zones")
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
drivers/md/dm-zone.c