Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Benjamin Marzinski and committed by
Mikulas Patocka
218b1699 4550a71b

+1 -1
+1 -1
drivers/md/dm-mpath.c
··· 225 225 mutex_init(&m->work_mutex); 226 226 227 227 m->queue_mode = DM_TYPE_NONE; 228 + m->pg_init_delay_msecs = DM_PG_INIT_DELAY_DEFAULT; 228 229 229 230 m->ti = ti; 230 231 ti->private = m; ··· 252 251 set_bit(MPATHF_QUEUE_IO, &m->flags); 253 252 atomic_set(&m->pg_init_in_progress, 0); 254 253 atomic_set(&m->pg_init_count, 0); 255 - m->pg_init_delay_msecs = DM_PG_INIT_DELAY_DEFAULT; 256 254 init_waitqueue_head(&m->pg_init_wait); 257 255 init_waitqueue_head(&m->probe_wait); 258 256