Re: [PATCH v3 5/6] dm: limit swapping tables for devices with zone write plugs

2025-04-10 Thread Damien Le Moal
On 4/10/25 5:15 AM, Benjamin Marzinski wrote: >>> @@ -1873,11 +1898,17 @@ int dm_table_set_restrictions(struct dm_table *t, >>> struct request_queue *q, >>> limits->features &= ~BLK_FEAT_DAX; >>> >>> /* For a zoned table, setup the zone related queue attributes. */ >>> - if (IS

Re: [PATCH v3 5/6] dm: limit swapping tables for devices with zone write plugs

2025-04-09 Thread Benjamin Marzinski
On Wed, Apr 09, 2025 at 03:20:31PM +0900, Damien Le Moal wrote: > On 4/9/25 8:51 AM, Benjamin Marzinski wrote: > > dm_revalidate_zones() only allowed new or previously unzoned devices to > > call blk_revalidate_disk_zones(). If the device was already zoned, > > disk->nr_zones would always equal md-

Re: [PATCH v3 5/6] dm: limit swapping tables for devices with zone write plugs

2025-04-08 Thread Damien Le Moal
On 4/9/25 8:51 AM, Benjamin Marzinski wrote: > dm_revalidate_zones() only allowed new or previously unzoned devices to > call blk_revalidate_disk_zones(). If the device was already zoned, > disk->nr_zones would always equal md->nr_zones, so dm_revalidate_zones() > returned without doing any work. T

[PATCH v3 5/6] dm: limit swapping tables for devices with zone write plugs

2025-04-08 Thread Benjamin Marzinski
dm_revalidate_zones() only allowed new or previously unzoned devices to call blk_revalidate_disk_zones(). If the device was already zoned, disk->nr_zones would always equal md->nr_zones, so dm_revalidate_zones() returned without doing any work. This would make the zoned settings for the device not