[Drbd-dev] [CSE-39] changes to standalone status on disconnecting phase.

Jaeheon Kim jhkim at mantech.co.kr
Mon Apr 11 08:54:41 CEST 2016


Dear Phil.

Sometime, the resource goes to standalone status on disconnecting phase.
So, we change the code like this;

void drbd_send_acks_wf(struct work_struct *ws)
{
   ....

#ifdef _WIN32
    if (err)
         change_cstate(connection, C_NETWORK_FAILURE, CS_HARD); // CHAGNE
from C_DISCONNECTING to C_NETWORK_FAILURE
#else
    if (err)
         change_cstate(connection, C_DISCONNECTING, CS_HARD);
#endif
}



On V8.4.7, the same position code is C_NETWORK_FAILURE, as follows;

void drbd_send_acks_wf(struct work_struct *ws)
{
        .....
        if (err) {
             conn_request_state(connection, NS(conn, C_NETWORK_FAILURE),
CS_HARD);
             return;
        }
       .....
}


What do you think about our solution to prohibit from changing standalone
on disconnecting phase?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20160411/b54389ab/attachment.htm>


More information about the drbd-dev mailing list