drbd: Bugfix for the connection behavior
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / block / drbd / drbd_state.c
index 1132d87..ecc5e27 100644 (file)
@@ -1055,7 +1055,7 @@ __drbd_set_state(struct drbd_conf *mdev, union drbd_state ns,
                drbd_thread_stop_nowait(&mdev->tconn->receiver);
 
        /* Upon network failure, we need to restart the receiver. */
-       if (os.conn > C_TEAR_DOWN &&
+       if (os.conn > C_WF_CONNECTION &&
            ns.conn <= C_TEAR_DOWN && ns.conn >= C_TIMEOUT)
                drbd_thread_restart_nowait(&mdev->tconn->receiver);