Commit 7e2455c1 authored by Philipp Reisner's avatar Philipp Reisner Committed by Jens Axboe

drbd: Terminate a connection early if sending the protocol fails

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 7ac314c8
...@@ -899,7 +899,8 @@ retry: ...@@ -899,7 +899,8 @@ retry:
drbd_thread_start(&mdev->asender); drbd_thread_start(&mdev->asender);
drbd_send_protocol(mdev); if (!drbd_send_protocol(mdev))
return -1;
drbd_send_sync_param(mdev, &mdev->sync_conf); drbd_send_sync_param(mdev, &mdev->sync_conf);
drbd_send_sizes(mdev, 0); drbd_send_sizes(mdev, 0);
drbd_send_uuids(mdev); drbd_send_uuids(mdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment