multipath: add queue_without_daemon config parameter
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 23 Mar 2010 22:04:00 +0000 (17:04 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Thu, 25 Mar 2010 19:18:04 +0000 (20:18 +0100)
commit6ec48625e68f66e993178348a4a1e7916ac1222d
treef0adcb366e4d32f15b3fa688e81521290ed4ac3f
parentca2e0bced9985b3d2a43c942a367dd9f2540cf00
multipath: add queue_without_daemon config parameter

This patch adds a new multipath.conf default paramter, queue_without_daemon.
If this is set to "no", when multipathd stops, queueing will be turned off for
all devices.  This is useful for devices that set no_path_retry.  If a machine
is shut down while all paths to a device are down, it is possible to hang
waiting for IO to return from the device after multipathd has been stopped.
Without multipathd running, access to the paths cannot be restored, and the
kernel cannot be told to stop queueing IO. Setting queue_without_daemon to "no"
makes multipathd turn off queueing on all devices when it stops, avoiding the
problem.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/config.h
libmultipath/dict.c
libmultipath/structs.h
multipath.conf.annotated
multipath.conf.synthetic
multipath/multipath.conf.5
multipathd/main.c