backport two patches from community. 1. libmultipath: use directio checker for LIO target 2. multipathd: make pr registration consistent Signed-off-by: liubo <liubo254@huawei.com> (cherry picked from commit ee0fed9d9c62936bc10577d2ade7aa93ef601491)
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From 71448bb3742446679955037c4416dc5e5fd73836 Mon Sep 17 00:00:00 2001
|
|
From: Martin Wilck <mwilck@suse.com>
|
|
Date: Thu, 23 Mar 2023 21:43:32 +0100
|
|
Subject: [PATCH] libmultipath: use directio checker for LIO targets
|
|
|
|
LIO always responds with GOOD status to TUR. Thus TUR is
|
|
not useful as path checker for LIO targets.
|
|
|
|
Fixes https://github.com/opensvc/multipath-tools/issues/54
|
|
|
|
mwilck: v2: fixed up with .detect_checker setting.
|
|
|
|
Reported-by: Li Xiaokeng <lixiaokeng@huawei.com>
|
|
Signed-off-by: Martin Wilck <mwilck@suse.com>
|
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Tested-by: Li Xiaokeng <lixiaokeng@huawei.com>
|
|
---
|
|
libmultipath/hwtable.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
|
|
index 3c4f866a..65bca744 100644
|
|
--- a/libmultipath/hwtable.c
|
|
+++ b/libmultipath/hwtable.c
|
|
@@ -1067,6 +1067,8 @@ static struct hwentry default_hw[] = {
|
|
.pgfailback = -FAILBACK_IMMEDIATE,
|
|
.no_path_retry = 12,
|
|
.prio_name = PRIO_ALUA,
|
|
+ .checker_name = DIRECTIO,
|
|
+ .detect_checker = DETECT_CHECKER_OFF,
|
|
},
|
|
/*
|
|
* DataCore
|
|
--
|
|
2.33.0
|
|
|