1
1

btl/ugni: mark btl frags for irqs as btl owned

Make sure frags allocated to generate irqs to wake
the progress thread, etc. set the MCA_BTL_DES_FLAGS_BTL_OWNERSHIP
flag.
Этот коммит содержится в:
Howard Pritchard 2014-12-18 16:04:52 -07:00
родитель d188f0bc6f
Коммит 0dec2f4af7
2 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -112,11 +112,9 @@ static inline int mca_btl_ugni_post_bte (mca_btl_ugni_base_frag_t *frag, gni_pos
rc = mca_btl_ugni_frag_alloc(frag->endpoint,
&frag->endpoint->btl->rdma_frags,
&cq_frag);
#if 0
fprintf(stderr,"allocated cq_frag %p\n",cq_frag);
#endif
if (rc == OPAL_SUCCESS) {
cq_frag->registration = NULL;
cq_frag->base.des_flags = MCA_BTL_DES_FLAGS_BTL_OWNERSHIP;
cq_frag->post_desc.base.type = GNI_POST_RDMA_PUT;
cq_frag->post_desc.base.length = 4;
cq_frag->post_desc.base.remote_addr = (uint64_t)howards_start_addr;

Просмотреть файл

@ -114,6 +114,7 @@ static inline int opal_mca_btl_ugni_smsg_send (mca_btl_ugni_base_frag_t *frag,
&frag->endpoint->btl->rdma_frags,
&cq_write_frag);
if (rc == OPAL_SUCCESS) {
cq_write_frag->base.des_flags = MCA_BTL_DES_FLAGS_BTL_OWNERSHIP;
cq_write_frag->registration = NULL;
cq_write_frag->endpoint = frag->endpoint;
cq_write_frag->post_desc.base.type = GNI_POST_CQWRITE;