Re: [PATCH v3 4/6] dm: fix dm_blk_report_zones

2025-04-09 Thread Benjamin Marzinski
On Wed, Apr 09, 2025 at 03:02:58PM +0900, Damien Le Moal wrote: > On 4/9/25 8:51 AM, Benjamin Marzinski wrote: > > If dm_get_live_table() returned NULL, dm_put_live_table() was never > > called. Also, it is possible that md->zone_revalidate_map will change > > while calling this function. Only read

Re: [PATCH v3 4/6] dm: fix dm_blk_report_zones

2025-04-08 Thread Damien Le Moal
On 4/9/25 8:51 AM, Benjamin Marzinski wrote: > If dm_get_live_table() returned NULL, dm_put_live_table() was never > called. Also, it is possible that md->zone_revalidate_map will change > while calling this function. Only read it once, so that we are always > using the same value. Otherwise we mig