[Drbd-dev] [PATCH] drbd: do not finish the stable resync when repl state is L_PAUSED_SYNC_T

徐锐 rui.xu at easystack.cn
Fri Sep 10 08:46:02 CEST 2021


Hi Joel,
I'm sorry there were some format problems in my last email.

Thanks for the reply and sorry for the delay. After some more investigation, I found the root cause

of this problem we met is that there is a race condition in update_sync_bits() and receive_bitmap().
This race condition will lead the problem I was trying to solve in this patch above.


We confirmed the race condition existing in upstream and I have sent a patch for it:
https://lists.linbit.com/pipermail/drbd-dev/2021-September/005840.html


So you can go to review my new patch directly.
Thanks,
Xu








From: Joel Colledge <joel.colledge at linbit.com>
Date: 2021-09-01 16:40:32
To:  Rui Xu <rui.xu at easystack.cn>
Cc:  Philipp Reisner <philipp.reisner at linbit.com>,drbd-dev at 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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20210910/81e0e19a/attachment.htm>


More information about the drbd-dev mailing list