device-mapper-multipath/0016-multipathd-don-t-rescan_path-on-wwid-change-in-uev_u.patch
Benjamin Marzinski 4cd78d0f27 device-mapper-multipath-0.8.6-3
Add 0011-multipathd-don-t-fail-to-remove-path-once-the-map-is.patch
Add 0012-multipathd-remove-duplicate-orphan_paths-in-flush_ma.patch
Add 0013-multipathd-fix-ev_remove_path-return-code-handling.patch
Add 0014-multipath-free-vectors-in-configure.patch
Add 0015-kpartx-Don-t-leak-memory-when-getblock-returns-NULL.patch
Add 0016-multipathd-don-t-rescan_path-on-wwid-change-in-uev_u.patch
  * Above patches Fix bz #1938704
Resolves: bz #1938704
2021-05-19 17:16:17 -05:00

28 lines
965 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Benjamin Marzinski <bmarzins@redhat.com>
Date: Fri, 14 May 2021 13:45:28 -0500
Subject: [PATCH] multipathd: don't rescan_path on wwid change in
uev_update_path
If get_uid() is returning a different wwid in uev_update_path(), then
the uid_attribute must have already gotten updated, which was the
purpose behind calling rescan_path() in the first place.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
multipathd/main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/multipathd/main.c b/multipathd/main.c
index 8e2beddd..2750f5e9 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1359,7 +1359,6 @@ uev_update_path (struct uevent *uev, struct vectors * vecs)
condlog(0, "%s: path wwid changed from '%s' to '%s'",
uev->kernel, wwid, pp->wwid);
ev_remove_path(pp, vecs, 1);
- rescan_path(uev->udev);
needs_reinit = 1;
goto out;
} else {