multipath: don't remove map twice
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 10 Feb 2012 18:13:12 +0000 (12:13 -0600)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Sat, 11 Feb 2012 08:20:05 +0000 (09:20 +0100)
If setup_mutipath fails, it removes the map itself, so don't try to again.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
multipathd/main.c

index 1f95a2fa1f3b30119598cb04a8d8df11b35d1f02..9cf0a8098696b03e6b3fb9bac071335f801f3940 100644 (file)
@@ -530,7 +530,7 @@ rescan:
         * update our state from kernel regardless of create or reload
         */
        if (setup_multipath(vecs, mpp))
-               goto fail_map;
+               goto fail; /* if setup_multipath fails, it removes the map */
 
        sync_map_state(mpp);