]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm mpath: make pg_init_delay_msecs settable
authorBenjamin Marzinski <bmarzins@redhat.com>
Wed, 28 Jan 2026 00:12:24 +0000 (19:12 -0500)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 28 Jan 2026 14:45:34 +0000 (15:45 +0100)
commit218b16992a37ea97b9e09b7659a25a864fb9976f
tree5fd755225ecf90e49c2f503a1aeee734be226fc5
parent4550a71b179be9e2a17015c018b231a2daca2dd1
dm mpath: make pg_init_delay_msecs settable

"pg_init_delay_msecs X" can be passed as a feature in the multipath
table and is used to set m->pg_init_delay_msecs in parse_features().
However, alloc_multipath_stage2(), which is called after
parse_features(), resets m->pg_init_delay_msecs to its default value.
Instead, set m->pg_init_delay_msecs in alloc_multipath(), which is
called before parse_features(), to avoid overwriting a value passed in
by the table.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-mpath.c