Skip to contentSkip to conversation

minor fix for multipathd's multipath hwentry setup

PATCH In review Lan 2 participants 2 messages Nov 3, 2005 Device mapper

lore
Share & tools
lore

Lan

author
#0 lore raw

PATCH 1/1 minor fix for multipathd's multipath hwentry setup

It looks like the hwe should be initialized before calling select_pgfailback, since select_pgfailback could use the mpp->hwe vaule.

multipathd/main.c 2005-11-01 22:47:47.000000000-0800 renamed from multipathd/main.c 2005-11-02 23:24:24.000000000 -0800 +0 -0
@@ -394,8 +394,8 @@

goto out;

adopt_paths(vecs, mpp);
- select_pgfailback(mpp);
mpp->hwe = extract_hwe_from_path(mpp);
+ select_pgfailback(mpp);
set_no_path_retry(mpp);

return 0;

#1 lore raw
Quoted 10 lines · Lan

It looks like the hwe should be initialized before calling select_pgfailback, since select_pgfailback could use the mpp->hwe vaule.

--- mp-bleed-1102/multipathd/main.c 2005-11-02 23:24:24.000000000
-0800
+++ mp-bleed-1102-patch/multipathd/main.c 2005-11-01
22:47:47.000000000 -0800

Review line 401

Quoted 9 lines
(quoted diff) +1 -1
@@ -394,8 +394,8 @@
                goto out;
 
        adopt_paths(vecs, mpp);
-       select_pgfailback(mpp);
        mpp->hwe = extract_hwe_from_path(mpp);
+       select_pgfailback(mpp);
        set_no_path_retry(mpp);
 
        return 0;

Thanks to you and Ed.
Applied,
cvaroqui