Counter of created RDMA channels should be incremented immediately after channel
creation (not in control message completion) otherwise more than max_eager_rdma channel may be created. This commit was SVN r18082.
Этот коммит содержится в:
родитель
1b54e8b76e
Коммит
713a27dc71
@ -743,7 +743,6 @@ static void mca_btl_openib_endpoint_eager_rdma_connect_cb(
|
||||
(mca_btl_openib_module_t*)btl;
|
||||
OPAL_THREAD_ADD32(&hca->non_eager_rdma_endpoints, -1);
|
||||
assert(hca->non_eager_rdma_endpoints >= 0);
|
||||
OPAL_THREAD_ADD32(&openib_btl->eager_rdma_channels, 1);
|
||||
MCA_BTL_IB_FRAG_RETURN(descriptor);
|
||||
}
|
||||
|
||||
@ -883,6 +882,7 @@ void mca_btl_openib_endpoint_connect_eager_rdma(
|
||||
p = &hca->eager_rdma_buffers[hca->eager_rdma_buffers_count];
|
||||
} while(!opal_atomic_cmpset_ptr(p, NULL, endpoint));
|
||||
|
||||
OPAL_THREAD_ADD32(&openib_btl->eager_rdma_channels, 1);
|
||||
/* from this point progress function starts to poll new buffer */
|
||||
OPAL_THREAD_ADD32(&hca->eager_rdma_buffers_count, 1);
|
||||
return;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user