<html>
<head>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
</head>
<body>
<style>
    font{
        line-height: 1.6;
    }
    ul,ol{
        padding-left: 20px;
        list-style-position: inside;
    }
</style>
<div style = 'font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif;font-size:14px; line-height:1.6;'>
    <div ></div>
<style>
    font{
        line-height: 1.6;
    }
    ul,ol{
        padding-left: 20px;
        list-style-position: inside;
    }
</style>
<div style="font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif;font-size:14px; line-height:1.6;">
    <div></div><div>
    <div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 22.4px;"><div style="line-height: 22.4px;">Hi all,</div><div style="line-height: 22.4px;"><span style="line-height: 1.6;">The new patch shown as below a</span><span style="line-height: 22.4px;">cocording to ben's suggestion,  p</span><span style="font-family: 微软雅黑; line-height: 1.6;">lease ignore v2, thanks.</span></div></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 22.4px;"><br></div><div><div>From 31ec4e9c270ff854b8edc526c5bcc9b24608d751 Mon Sep 17 00:00:00 2001</div><div>From: Chongyun Wu <wucy11@chinatelecom.cn></div><div>Date: Wed, 16 Dec 2020 13:59:16 +0800</div><div>Subject: [PATCH] multipathd: fix path checkint not changed when path state</div><div> form delay to failed</div><div><br></div><div>Check_path: when path state change back to failed from delay state, should change</div><div style="">this path's check interval time to the shortest delay to faster path state check.</div><div><br></div><div style="">Signed-off-by: Chongyun Wu <wucy11@chinatelecom.cn></div><div style="">---</div><div> multipathd/main.c | 5 +++++</div><div> 1 file changed, 5 insertions(+)</div><div><br></div><div>diff --git a/multipathd/main.c b/multipathd/main.c</div><div>index a4abbb27..9fd34e97 100644</div><div>--- a/multipathd/main.c</div><div>+++ b/multipathd/main.c</div><div>@@ -2166,6 +2166,11 @@ check_path (struct vectors * vecs, struct path * pp, unsigned int ticks)</div><div> <span class="Apple-tab-span" style="white-space:pre">                 </span>(pp->state == PATH_DELAYED)) {</div><div> <span class="Apple-tab-span" style="white-space:pre">              </span>/* If path state become failed again cancel path delay state */</div><div> <span class="Apple-tab-span" style="white-space:pre">                </span>pp->state = newstate;</div><div>+<span class="Apple-tab-span" style="white-space:pre">            </span>/*</div><div>+<span class="Apple-tab-span" style="white-space:pre">          </span> * path state bad again should change the check interval time</div><div>+<span class="Apple-tab-span" style="white-space:pre">               </span> * to the shortest delay</div><div>+<span class="Apple-tab-span" style="white-space:pre">            </span> */</div><div>+<span class="Apple-tab-span" style="white-space:pre">         </span>pp->checkint = checkint;</div><div> <span class="Apple-tab-span" style="white-space:pre">            </span>return 1;</div><div> <span class="Apple-tab-span" style="white-space:pre">      </span>}</div><div> <span class="Apple-tab-span" style="white-space:pre">      </span>if (!pp->mpp) {</div><div>-- </div><div>2.29.2.windows.3</div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 22.4px;"><br></div></div></div><div>
    </div>
    <div id="ntes-pcmac-signature" style="font-family:'微软雅黑'">
         <div style="font-size:14px; padding: 0;  margin:0;">
        <div style="padding-bottom:10px;margin-bottom:10px;display:inline-block;">
            <div style="margin:0;">Best Regard,</div><div style="margin:0;">Chongyun Wu</div>
        </div>
    </div>
     </div>
</div><!--😀-->
</div><!--😀-->
</div>
</body>
</html>