[libmultipath] Don't use FAILBACK_UNDEF as a hwentry default
authorChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 3 Oct 2016 12:14:34 +0000 (14:14 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 3 Oct 2016 12:14:34 +0000 (14:14 +0200)
commite387f365e9cd6e79a9a0fb5c5b7acca2fb7a1412
tree666530d7afa5c3f22bb3356ee96174e46ac46967
parente39610b0d3a4b5da16adcd10f18460dde609c41b
[libmultipath] Don't use FAILBACK_UNDEF as a hwentry default

In the current code base, FAILBACK_UNDEF causes
need_switch_pathgroup() to refresh each path prio and mpp->bestpg,
and return to the caller it should switch pathgroup. But the caller
(check_path()) won't switch anyway.

FAILBACK_UNDEF never fails back automatically, like
FAILBACK_MANUAL, but causes unecessary work. So it should be used
as a hwentry default failback value.
libmultipath/hwtable.c
multipath/multipath.conf.5