multipath: Increase dev_loss_tmo prior to fast_io_fail
authorHannes Reinecke <hare@suse.de>
Tue, 16 Jul 2013 07:12:55 +0000 (09:12 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 16 Jul 2013 19:49:17 +0000 (21:49 +0200)
commit348cf15922a1030252b3848231598dabd4236542
tree451f9e7f4d926047aaeecf3e3c7e49d0da151cf7
parentdbbf30e188d7ec7406d83cbf3c282095c0d5a00a
multipath: Increase dev_loss_tmo prior to fast_io_fail

There are several constraints when setting fast_io_fail and
dev_loss_tmo.
dev_loss_tmo will be capped automatically when fast_io_fail is
not set. And fast_io_fail can not be raised beyond dev_loss_tmo.

So to increase dev_loss_tmo and fast_io_fail we first need
to increase dev_loss_tmo to the given fast_io_fail
setting, then set fast_io_fail, and then set dev_loss_tmo
to the final setting.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/discovery.c
libmultipath/sysfs.c
libmultipath/sysfs.h