2020-09-27 05:56:23 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Martin Wilck <mwilck@suse.com>
|
2021-01-20 00:06:09 +00:00
|
|
|
Date: Wed, 23 Sep 2020 11:28:22 +0200
|
2020-09-27 05:56:23 +00:00
|
|
|
Subject: [PATCH] multipathd: remove logsink and udev
|
|
|
|
|
|
|
|
We can use the symbols from libmultipath now.
|
|
|
|
|
2021-01-20 00:06:09 +00:00
|
|
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
2020-09-27 05:56:23 +00:00
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
---
|
|
|
|
multipathd/main.c | 9 +++------
|
|
|
|
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/multipathd/main.c b/multipathd/main.c
|
2021-01-20 00:06:09 +00:00
|
|
|
index 00b66ba4..c5c374b7 100644
|
2020-09-27 05:56:23 +00:00
|
|
|
--- a/multipathd/main.c
|
|
|
|
+++ b/multipathd/main.c
|
2021-01-20 00:06:09 +00:00
|
|
|
@@ -115,7 +115,6 @@ struct mpath_event_param
|
2020-09-27 05:56:23 +00:00
|
|
|
struct multipath *mpp;
|
|
|
|
};
|
|
|
|
|
|
|
|
-int logsink;
|
|
|
|
int uxsock_timeout;
|
|
|
|
int verbosity;
|
|
|
|
int bindings_read_only;
|
2021-01-20 00:06:09 +00:00
|
|
|
@@ -151,8 +150,6 @@ int should_exit(void)
|
2020-09-27 05:56:23 +00:00
|
|
|
*/
|
|
|
|
struct vectors * gvecs;
|
|
|
|
|
|
|
|
-struct udev * udev;
|
|
|
|
-
|
|
|
|
struct config *multipath_conf;
|
|
|
|
|
|
|
|
/* Local variables */
|
2021-01-20 00:06:09 +00:00
|
|
|
@@ -3123,8 +3120,6 @@ child (__attribute__((unused)) void *param)
|
2020-09-27 05:56:23 +00:00
|
|
|
conf = rcu_dereference(multipath_conf);
|
|
|
|
rcu_assign_pointer(multipath_conf, NULL);
|
|
|
|
call_rcu(&conf->rcu, rcu_free_config);
|
|
|
|
- udev_unref(udev);
|
|
|
|
- udev = NULL;
|
|
|
|
pthread_attr_destroy(&waiter_attr);
|
|
|
|
pthread_attr_destroy(&io_err_stat_attr);
|
|
|
|
#ifdef _DEBUG_
|
2021-01-20 00:06:09 +00:00
|
|
|
@@ -3228,7 +3223,9 @@ main (int argc, char *argv[])
|
2020-09-27 05:56:23 +00:00
|
|
|
|
|
|
|
pthread_cond_init_mono(&config_cond);
|
|
|
|
|
|
|
|
- udev = udev_new();
|
|
|
|
+ libmultipath_init();
|
|
|
|
+ if (atexit(libmultipath_exit))
|
|
|
|
+ condlog(3, "failed to register exit handler for libmultipath");
|
|
|
|
libmp_udev_set_sync_support(0);
|
|
|
|
|
|
|
|
while ((arg = getopt(argc, argv, ":dsv:k::Bniw")) != EOF ) {
|
|
|
|
--
|
|
|
|
2.17.2
|
|
|
|
|