drbd: Terminate a connection early if sending the protocol fails

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
Philipp Reisner 2010-04-22 14:50:23 +02:00 committed by Jens Axboe
parent 7ac314c82f
commit 7e2455c1a1
1 changed files with 2 additions and 1 deletions

View File

@ -899,7 +899,8 @@ retry:
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_sizes(mdev, 0);
drbd_send_uuids(mdev);