Don't increase num_peers if the operation fails.
This commit was SVN r19748.
Этот коммит содержится в:
родитель
3d4e89a5cd
Коммит
1e14bb305f
@ -255,18 +255,21 @@ static int mca_btl_openib_size_queues(struct mca_btl_openib_module_t* openib_btl
|
||||
}
|
||||
|
||||
rc = adjust_cq(device, BTL_OPENIB_HP_CQ);
|
||||
if (OMPI_SUCCESS != rc)
|
||||
if (OMPI_SUCCESS != rc) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
rc = adjust_cq(device, BTL_OPENIB_LP_CQ);
|
||||
if (OMPI_SUCCESS != rc)
|
||||
if (OMPI_SUCCESS != rc) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
if(0 == openib_btl->num_peers)
|
||||
if (0 == openib_btl->num_peers) {
|
||||
rc = create_srq(openib_btl);
|
||||
}
|
||||
|
||||
out:
|
||||
openib_btl->num_peers += nprocs;
|
||||
out:
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user