From: Damien Le Moal <dlemoal@kernel.org>
To: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, dm-devel@lists.linux.dev,
Mike Snitzer <snitzer@kernel.org>,
Mikulas Patocka <mpatocka@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>, Benjamin Marzinski <bmarzins@redhat.com>
Subject: [PATCH v6 0/4] Fix DM zone resource limits stacking
Date: Thu, 6 Jun 2024 17:21:43 +0900 [thread overview]
Message-ID: <20240606082147.96422-1-dlemoal@kernel.org> (raw)
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 v5:
- Corrected typo in comment in patch 2
- Simplyfied patch 3 by removing the function dm_set_zone_resources()
and integrating its code directly in dm_set_zone_restrictions().
- Added review tags
Changes from v4:
- Fixed a typo in a comment in patch 1
- Added patch 2 and changed patch 3 accordingly
- Added review tags
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 (4):
block: Improve checks on zone resource limits
dm: Call dm_revalidate_zones() after setting the queue 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-table.c | 15 +++-
drivers/md/dm-zone.c | 200 ++++++++++++++++++++++++++++++++----------
drivers/md/dm.h | 1 +
5 files changed, 190 insertions(+), 54 deletions(-)
--
2.45.2
next reply other threads:[~2024-06-06 8:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 8:21 Damien Le Moal [this message]
2024-06-06 8:21 ` [PATCH v6 1/4] block: Improve checks on zone resource limits Damien Le Moal
2024-06-10 7:15 ` Niklas Cassel
2024-06-06 8:21 ` [PATCH v6 2/4] dm: Call dm_revalidate_zones() after setting the queue limits Damien Le Moal
2024-06-06 19:40 ` Benjamin Marzinski
2024-06-10 7:16 ` Niklas Cassel
2024-06-06 8:21 ` [PATCH v6 3/4] dm: Improve zone resource limits handling Damien Le Moal
2024-06-06 19:41 ` Benjamin Marzinski
2024-06-10 7:18 ` Niklas Cassel
2024-06-06 8:21 ` [PATCH v6 4/4] dm: Remove unused macro DM_ZONE_INVALID_WP_OFST Damien Le Moal
2024-06-10 7:19 ` Niklas Cassel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240606082147.96422-1-dlemoal@kernel.org \
--to=dlemoal@kernel.org \
--cc=axboe@kernel.dk \
--cc=bmarzins@redhat.com \
--cc=dm-devel@lists.linux.dev \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=mpatocka@redhat.com \
--cc=snitzer@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).