[Drbd-dev] Resync Stalls at 100% patch problem
philipp.reisner at linbit.com
Fri Jun 8 11:51:02 CEST 2007
On Thursday 07 June 2007 00:14:13 Montrose, Ernest wrote:
> I looked into the patch issue a bit more.
> This problem happens if we acquire the req_lock early. What I think is
> going on is this:
> Primary host ---->attach---> send_state()
> Peer -----> receive_state()-->after_state_ch()-->send_bitmap()
> Primary Host ---->receive_bitmap()***Unexpected cstate "Connected"
> Peer ----> send_state()
> Primary Host --->receive_state() and we are deadlock.
> The primary host is receiving the bitmap too early. Essentially the
> peer should call send_state() before calling after_state_ch()
> I noticed the patch had moved that logic after calling after_state_ch()
> so moving it back before after_state_ch() should be OK. Any reason why
> it was moved down?
> I tested the included patch that moved just before we call
> Let me know.
Sorry for the slow responses recently. We had a public holiday here,
and I was out in the mountains...
I have now committed a patch very similar to your suggestion.
: Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, 1120 Vienna, Austria http://www.linbit.com :
More information about the drbd-dev