Blame SOURCES/0079-libmultipath-use-select_reload_action-in-select_acti.patch

86e138
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
86e138
From: Benjamin Marzinski <bmarzins@redhat.com>
86e138
Date: Mon, 30 Jan 2023 19:54:19 -0600
86e138
Subject: [PATCH] libmultipath: use select_reload_action in select_action
86e138
86e138
Since we have a function to set the action to reload, use it.
86e138
86e138
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
86e138
---
86e138
 libmultipath/configure.c | 8 ++------
86e138
 1 file changed, 2 insertions(+), 6 deletions(-)
86e138
86e138
diff --git a/libmultipath/configure.c b/libmultipath/configure.c
86e138
index 193bf27d..09d7de0f 100644
86e138
--- a/libmultipath/configure.c
86e138
+++ b/libmultipath/configure.c
86e138
@@ -771,9 +771,7 @@ void select_action (struct multipath *mpp, const struct _vector *curmp,
86e138
 
86e138
 	if (force_reload) {
86e138
 		mpp->force_udev_reload = 1;
86e138
-		mpp->action = ACT_RELOAD;
86e138
-		condlog(3, "%s: set ACT_RELOAD (forced by user)",
86e138
-			mpp->alias);
86e138
+		select_reload_action(mpp, "forced by user");
86e138
 		return;
86e138
 	}
86e138
 	if (cmpp->size != mpp->size) {
86e138
@@ -786,9 +784,7 @@ void select_action (struct multipath *mpp, const struct _vector *curmp,
86e138
 
86e138
 	if (!is_udev_ready(cmpp) && count_active_paths(mpp) > 0) {
86e138
 		mpp->force_udev_reload = 1;
86e138
-		mpp->action = ACT_RELOAD;
86e138
-		condlog(3, "%s: set ACT_RELOAD (udev incomplete)",
86e138
-			mpp->alias);
86e138
+		select_reload_action(mpp, "udev incomplete");
86e138
 		return;
86e138
 	}
86e138