[dm-devel] [PATCH 46/54] libmultipath: path_discover(): always set DI_BLACKLIST

mwilck at suse.com mwilck at suse.com
Thu Jul 9 10:36:15 UTC 2020


From: Martin Wilck <mwilck at suse.com>

Since 65e1845 ("multipath: call store_pathinfo with DI_BLACKLIST"), we
use DI_BLACKLIST for new paths. There's no reason why we shouldn't do the
same with paths which are (unexpectedly) already in pathvec. As argued
for 65e1845, this might save some unnecessary work for paths which are
blacklisted anyway.

Signed-off-by: Martin Wilck <mwilck at suse.com>
---
 libmultipath/discovery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index 5f4ebf0..caabfef 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -137,7 +137,7 @@ path_discover (vector pathvec, struct config * conf,
 				      udevice, flag | DI_BLACKLIST,
 				      NULL);
 	else
-		return pathinfo(pp, conf, flag);
+		return pathinfo(pp, conf, flag | DI_BLACKLIST);
 }
 
 static void cleanup_udev_enumerate_ptr(void *arg)
-- 
2.26.2





More information about the dm-devel mailing list