From: Benjamin Marzinski <bmarzins@redhat.com>
To: Xose Vazquez Perez <xose.vazquez@gmail.com>
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>,
device-mapper development <dm-devel@lists.linux.dev>,
Martin Wilck <Martin.Wilck@suse.com>
Subject: Re: [PATCH 0/4] minio cleanup patches.
Date: Mon, 15 Jun 2026 18:56:04 -0400 [thread overview]
Message-ID: <ajCDBM2lH7NvcuX8@redhat.com> (raw)
In-Reply-To: <8b715fda-3e14-4a6d-bba0-a3e53481f567@gmail.com>
On Mon, Jun 15, 2026 at 11:00:48PM +0200, Xose Vazquez Perez wrote:
> On 6/15/26 9:07 PM, Benjamin Marzinski wrote:
>
> > This patchset is to deprecate the rr_weight, rr_min_io_rq, and rr_min_io
> > multipath config options. It's a companion of the patchset to handle
> > their deprecation in the man pages.
> > https://lore.kernel.org/all/20260607103831.336833-2-xose.vazquez@gmail.com/
> >
> > It does not completely remove the minio setting code, since there are
> > ideas for reusing this in the future. The final patch is simply a change
> > to avoid a kernel warning message that I hit while testing these
> > patches.
> >
> > Benjamin Marzinski (4):
> > libmultipath: deprecate rr_weight, and make it do nothing
> > libmultipath: deprecate rr_min_io_rq, and make it do nothing
> > libmultipath: deprecate rr_min_io
> > libmultipath: don't set hwhander for bio based devices
> >
> > libmultipath/config.c | 6 ---
> > libmultipath/config.h | 6 ---
> > libmultipath/configure.c | 1 -
> > libmultipath/defaults.h | 2 +-
> > libmultipath/dict.c | 90 +++++++---------------------------------
> > libmultipath/dmparser.c | 28 +------------
> > libmultipath/hwtable.c | 3 --
> > libmultipath/propsel.c | 54 ++++++------------------
> > libmultipath/propsel.h | 1 -
> > libmultipath/structs.h | 1 -
> > tests/hwtable.c | 13 ++----
> > tests/test-lib.c | 1 -
> > 12 files changed, 33 insertions(+), 173 deletions(-)
> >
>
> Ben, thanks for this cleanup.
>
> I ran grep to see what remains of these options in the codebase.
> Could you please check if any of the following occurrences should have been
> removed, or if they are intended to stay for now?
>
> 8<---
> $ git grep -Ei "rr_weight|minio|min_io" | grep -vE "multipath.conf.5.in|deprecated"
>
Good catch. It appears I misses some things.
> libmultipath/config.c: merge_num(minio);
> libmultipath/config.c: merge_num(minio);
> libmultipath/config.c: hwe->minio = dhwe->minio;
> libmultipath/config.h: int minio;
> libmultipath/config.h: int minio;
> libmultipath/config.h: int minio;
> libmultipath/configure.c: select_minio(conf, mpp);
> libmultipath/configure.c: if (cmpp->minio != mpp->minio) {
> libmultipath/configure.c: select_reload_action(mpp, "minio change");
> libmultipath/defaults.h:#define DEFAULT_MINIO 1
> libmultipath/defaults.h:#define DEFAULT_MINIO_RQ 1
> libmultipath/defaults.h:#define DEFAULT_RR_WEIGHT RR_WEIGHT_NONE
> libmultipath/dict.h:int print_rr_weight(struct strbuf *buff, long v);
These were supposed to go.
> libmultipath/dmparser.c: int minio;
> libmultipath/dmparser.c: minio = mp->minio;
> libmultipath/dmparser.c: if (print_strbuf(&buff, " %s %d", pp->dev_t, minio) < 0)
> libmultipath/dmparser.c: int def_minio = 0;
> libmultipath/dmparser.c: def_minio = atoi(word);
> libmultipath/dmparser.c: if (def_minio != mpp->minio)
> libmultipath/dmparser.c: mpp->minio = def_minio;
> libmultipath/prioritizers/path_latency.c:#define MIN_IO_NUM 20
> libmultipath/prioritizers/path_latency.c: if ((io_num < MIN_IO_NUM) || (io_num > MAX_IO_NUM)) {
> libmultipath/propsel.c:select_minio_bio (struct config *conf, struct multipath * mp)
> libmultipath/propsel.c: mp_set_mpe(minio);
> libmultipath/propsel.c: mp_set_ovr(minio);
> libmultipath/propsel.c: mp_set_hwe(minio);
> libmultipath/propsel.c: mp_set_conf(minio);
> libmultipath/propsel.c: mp_set_default(minio, DEFAULT_MINIO);
> libmultipath/propsel.c: condlog(3, "%s: minio = %i %s", mp->alias, mp->minio, origin);
> libmultipath/propsel.c:int select_minio(struct config *conf, struct multipath *mp)
> libmultipath/propsel.c: return select_minio_bio(conf, mp);
> libmultipath/propsel.c: do_default(mp->minio, DEFAULT_MINIO_RQ);
This should be mp_set_default(). The generated code is the same, but
there's no reason not to use the standard call here.
> libmultipath/propsel.c: condlog(3, "%s: minio = %i %s", mp->alias, mp->minio, origin);
> libmultipath/propsel.h:int select_minio(struct config *conf, struct multipath *mp);
> libmultipath/structs.h:enum rr_weight_mode {
> libmultipath/structs.h: RR_WEIGHT_UNDEF,
> libmultipath/structs.h: RR_WEIGHT_NONE,
> libmultipath/structs.h: RR_WEIGHT_PRIO
More missed rr_weight stuff.
> libmultipath/structs.h: int minio;
> tests/test-lib.c: /* pretend new dm, use minio_rq, */
This comment no longer makes any sense, since select_minio no longer
checks the kernel version.
I'll clean these up and resend. If anyone has opinions on what I did
choose to keep around (you could easily make an argument that
DEFAULT_MINIO_RQ should go), let me know.
-Ben
> tests/test-lib.c: select_minio(conf, mp);
> 8<---
>
> Regards.
next prev parent reply other threads:[~2026-06-15 22:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-15 19:07 [PATCH 0/4] minio cleanup patches Benjamin Marzinski
2026-06-15 19:07 ` [PATCH 1/4] libmultipath: deprecate rr_weight, and make it do nothing Benjamin Marzinski
2026-06-15 19:07 ` [PATCH 2/4] libmultipath: deprecate rr_min_io_rq, " Benjamin Marzinski
2026-06-15 19:07 ` [PATCH 3/4] libmultipath: deprecate rr_min_io Benjamin Marzinski
2026-06-15 19:07 ` [PATCH 4/4] libmultipath: don't set hwhander for bio based devices Benjamin Marzinski
2026-06-15 21:00 ` [PATCH 0/4] minio cleanup patches Xose Vazquez Perez
2026-06-15 22:56 ` Benjamin Marzinski [this message]
2026-06-16 7:47 ` Xose Vazquez Perez
2026-07-19 14:57 ` Obsolete features (was Re: [PATCH 0/4] minio cleanup patches.) Xose Vazquez Perez
2026-07-20 15:33 ` Benjamin Marzinski
2026-07-20 19:29 ` Martin Wilck
2026-07-21 11:18 ` Xose Vazquez Perez
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=ajCDBM2lH7NvcuX8@redhat.com \
--to=bmarzins@redhat.com \
--cc=Martin.Wilck@suse.com \
--cc=christophe.varoqui@opensvc.com \
--cc=dm-devel@lists.linux.dev \
--cc=xose.vazquez@gmail.com \
/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