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:
Родитель
7ac314c82f
Коммит
7e2455c1a1
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче