<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi Joel,</div><div>I'm sorry there were some format problems in my last email.<br /></div><div>Thanks for the reply and sorry for the delay. After some more investigation, I found the root cause <br /></div><div>of this problem we met is that there is a race condition in update_sync_bits() and receive_bitmap().</div><div>This race condition will lead the problem I was trying to solve in this patch above.</div><div><br /></div><div>We confirmed the race condition existing in upstream and I have sent a patch for it:</div><div><a href="https://lists.linbit.com/pipermail/drbd-dev/2021-September/005840.html" _src="https://lists.linbit.com/pipermail/drbd-dev/2021-September/005840.html">https://lists.linbit.com/pipermail/drbd-dev/2021-September/005840.html</a></div><div><br /></div><div> So you can go to review my new patch directly.</div><div>Thanks,</div><div>Xu</div><br /><br /><br /><br /><br /><div style="position:relative;zoom:1"></div><br /><pre><br />From: Joel Colledge <joel.colledge@linbit.com>
Date: 2021-09-01 16:40:32
To: Rui Xu <rui.xu@easystack.cn>
Cc: Philipp Reisner <philipp.reisner@linbit.com>,drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] [PATCH] drbd: do not finish the stable resync when repl state is L_PAUSED_SYNC_T>Hi,
>
>Thanks for the contribution. Please describe the steps necessary to
>reproduce the issue. I tried briefly to reproduce it without success;
>getting a paused sync to finish before a running one is not that easy.
>A test in https://github.com/LINBIT/drbd9-tests would be ideal, but a
>written description is OK too.
>
>Please also verify that the issue occurs on the latest drbd-9.0 or
>master branch. I see from the patch that you are working on a version
>that is at least a couple of months old.
>
>Best regards,
>Joel
</pre></div><br>