forked from pool/multipath-tools
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
From f333a7d0516c053f2acc67c9ecec702e24ffdf44 Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Thu, 8 Jan 2009 11:44:13 +0100
|
|
Subject: [PATCH] Do not reinitialize prio and checker list after config init
|
|
|
|
init_prio() and init_checker() are called after the config file
|
|
is read as we have to know the path to the shared libraries.
|
|
But we should not overwrite any checker or prio information read
|
|
from the config file.
|
|
|
|
References: 464373
|
|
|
|
Signed-off-by: Konrad Rzeszutek <konrad@virtualiron.com>
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
libmultipath/checkers.c | 1 -
|
|
libmultipath/prio.c | 1 -
|
|
2 files changed, 0 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/libmultipath/checkers.c b/libmultipath/checkers.c
|
|
index 45ef531..4378621 100644
|
|
--- a/libmultipath/checkers.c
|
|
+++ b/libmultipath/checkers.c
|
|
@@ -28,7 +28,6 @@ char * checker_state_name (int i)
|
|
|
|
int init_checkers (void)
|
|
{
|
|
- INIT_LIST_HEAD(&checkers);
|
|
if (!add_checker(DEFAULT_CHECKER))
|
|
return 1;
|
|
return 0;
|
|
diff --git a/libmultipath/prio.c b/libmultipath/prio.c
|
|
index 5e01f54..30e03c2 100644
|
|
--- a/libmultipath/prio.c
|
|
+++ b/libmultipath/prio.c
|
|
@@ -12,7 +12,6 @@ static LIST_HEAD(prioritizers);
|
|
|
|
int init_prio (void)
|
|
{
|
|
- INIT_LIST_HEAD(&prioritizers);
|
|
if (!add_prio(DEFAULT_PRIO))
|
|
return 1;
|
|
return 0;
|
|
--
|
|
1.6.0.2
|
|
|