All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Fix DM zone resource limits stacking
@ 2024-06-05  7:51 Damien Le Moal
  2024-06-05  7:51 ` [PATCH v4 1/3] block: Improve checks on zone resource limits Damien Le Moal
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Damien Le Moal @ 2024-06-05  7:51 UTC (permalink / raw)
  To: Jens Axboe, linux-block, dm-devel, Mike Snitzer, Mikulas Patocka
  Cc: Christoph Hellwig, Benjamin Marzinski

This is the updated patch 4/4 of the series "Zone write plugging and DM
zone fixes". This patch fixes DM zone resource limits stacking (max open
zones and max active zones limits). Patch 1 is new and is added to help
catch problems and eventual regressions of the handling of these limits.

Changes from v3:
 - Modify patch 1 to always check the zone resource limits values in
   disk_update_zone_resources(), including for DM devices that do not
   use zone write plugging. Simplify patch 2 accordingly by removing the
   same check and adjustment of the zone resource limits.
 - Added patch 3

Changes from v2:
 - Modify patch 1 to return an error for the case where the max open
   zones limit is greater than the max active zones limit.
 - Modify patch 2 to avoid duplicated actions on the limits and to
   remove warnings for unusual zone limits.

Changes from v1:
 - Added patch 1
 - Modified patch 2 to not cap the limits for a target with the number
   of sequential zones mapped but rather to use the device limits as is
   when more zones than the limits are mapped and 0 otherwise (no
   limits).

Damien Le Moal (3):
  block: Improve checks on zone resource limits
  dm: Improve zone resource limits handling
  dm: Remove unused macro DM_ZONE_INVALID_WP_OFST

 block/blk-settings.c |   8 ++
 block/blk-zoned.c    |  20 ++++-
 drivers/md/dm-zone.c | 206 +++++++++++++++++++++++++++++++++++--------
 3 files changed, 191 insertions(+), 43 deletions(-)

-- 
2.45.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-06-06  5:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05  7:51 [PATCH v4 0/3] Fix DM zone resource limits stacking Damien Le Moal
2024-06-05  7:51 ` [PATCH v4 1/3] block: Improve checks on zone resource limits Damien Le Moal
2024-06-05  7:54   ` Christoph Hellwig
2024-06-05 17:25   ` Niklas Cassel
2024-06-06  0:06     ` Damien Le Moal
2024-06-06  1:21       ` Niklas Cassel
2024-06-06  2:12         ` Damien Le Moal
2024-06-06  4:41           ` Christoph Hellwig
2024-06-05  7:51 ` [PATCH v4 2/3] dm: Improve zone resource limits handling Damien Le Moal
2024-06-05  7:55   ` Christoph Hellwig
2024-06-05 19:47   ` Benjamin Marzinski
2024-06-05 23:52     ` Damien Le Moal
2024-06-06  4:39       ` Christoph Hellwig
2024-06-06  5:48         ` Damien Le Moal
2024-06-05  7:51 ` [PATCH v4 3/3] dm: Remove unused macro DM_ZONE_INVALID_WP_OFST Damien Le Moal
2024-06-05  7:55   ` Christoph Hellwig
2024-06-05 19:50   ` Benjamin Marzinski
2024-06-05 12:40 ` [PATCH v4 0/3] Fix DM zone resource limits stacking Johannes Thumshirn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.