While we're waiting for active paths to appear when ghost delay is enabled, we do add new paths to multipathd's internal mpp data structure as they are discovered (unlike missing uevent case, where we orphan the paths instead). When the ghost_delay timer expires, it should be sufficient to call the more light-weight reload_and_sync_map() instead of update_map(). Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> Reviewed-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx> --- multipathd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multipathd/main.c b/multipathd/main.c index 176d9bf..4063e82 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -2950,13 +2950,13 @@ static void checker_finished(struct vectors *vecs, unsigned int ticks) failback_reload = deferred_failback_tick(mpp); uev_wait_reload = missing_uev_wait_tick(mpp, &uev_timed_out); ghost_reload = ghost_delay_tick(mpp); - if (uev_wait_reload || ghost_reload) { + if (uev_wait_reload) { if (update_map(mpp, vecs, 0)) { /* multipath device deleted */ i--; continue; } - } else if (prio_reload || failback_reload || inconsistent) + } else if (prio_reload || failback_reload || ghost_reload || inconsistent) if (reload_and_sync_map(mpp, vecs) == 2) { /* multipath device deleted */ i--; -- 2.47.1