anyid, LNET_MSG_MATCHBITS, 0,
PTL_UNLINK, PTL_INS_AFTER, &meh);
if (rc != PTL_OK) {
- CERROR("PtlMEAttach failed: %d\n", rc);
+ CERROR("PtlMEAttach failed: %s(%d)\n",
+ ptllnd_errtype2str(rc), rc);
return -ENOMEM;
}
if (rc == PTL_OK)
return 0;
- CERROR("PtlMDAttach failed: %d\n", rc);
+ CERROR("PtlMDAttach failed: %s(%d)\n",
+ ptllnd_errtype2str(rc), rc);
buf->plb_posted = 0;
plni->plni_nposted_buffers--;
CERROR("Can't return credits to %s\n",
libcfs_id2str(peer->plp_id));
} else {
+ ptllnd_set_tx_deadline(tx);
list_add_tail(&tx->tx_list, &peer->plp_txq);
}
}
rc = PtlMDBind(plni->plni_nih, md, LNET_UNLINK, &mdh);
if (rc != PTL_OK) {
- CERROR("PtlMDBind for %s failed: %d\n",
- libcfs_id2str(peer->plp_id), rc);
+ CERROR("PtlMDBind for %s failed: %s(%d)\n",
+ libcfs_id2str(peer->plp_id),
+ ptllnd_errtype2str(rc), rc);
tx->tx_status = -EIO;
ptllnd_tx_done(tx);
break;
rc = PtlPut(mdh, PTL_NOACK_REQ, peer->plp_ptlid,
plni->plni_portal, 0, LNET_MSG_MATCHBITS, 0, 0);
if (rc != PTL_OK) {
- CERROR("PtlPut for %s failed: %d\n",
- libcfs_id2str(peer->plp_id), rc);
+ CERROR("PtlPut for %s failed: %s(%d)\n",
+ libcfs_id2str(peer->plp_id),
+ ptllnd_errtype2str(rc), rc);
tx->tx_status = -EIO;
ptllnd_tx_done(tx);
break;
rc = PtlMEAttach(plni->plni_nih, plni->plni_portal, peer->plp_ptlid,
matchbits, 0, PTL_UNLINK, PTL_INS_BEFORE, &meh);
if (rc != PTL_OK) {
- CERROR("PtlMEAttach for %s failed: %d\n",
- libcfs_id2str(peer->plp_id), rc);
+ CERROR("PtlMEAttach for %s failed: %s(%d)\n",
+ libcfs_id2str(peer->plp_id),
+ ptllnd_errtype2str(rc), rc);
rc = -EIO;
goto failed;
}
rc = PtlMDAttach(meh, md, LNET_UNLINK, &mdh);
if (rc != PTL_OK) {
- CERROR("PtlMDAttach for %s failed: %d\n",
- libcfs_id2str(peer->plp_id), rc);
+ CERROR("PtlMDAttach for %s failed: %s(%d)\n",
+ libcfs_id2str(peer->plp_id),
+ ptllnd_errtype2str(rc), rc);
rc2 = PtlMEUnlink(meh);
LASSERT (rc2 == PTL_OK);
rc = -EIO;
rc = PtlMDBind(plni->plni_nih, md, LNET_UNLINK, &mdh);
if (rc != PTL_OK) {
- CERROR("PtlMDBind for %s failed: %d\n",
- libcfs_id2str(peer->plp_id), rc);
+ CERROR("PtlMDBind for %s failed: %s(%d)\n",
+ libcfs_id2str(peer->plp_id),
+ ptllnd_errtype2str(rc), rc);
rc = -EIO;
goto failed;
}
if (rc == PTL_OK)
return 0;
- CERROR("Can't initiate RDMA with %s: %d\n",
- libcfs_id2str(peer->plp_id), rc);
+ CERROR("Can't initiate RDMA with %s: %s(%d)\n",
+ libcfs_id2str(peer->plp_id),
+ ptllnd_errtype2str(rc), rc);
tx->tx_lnetmsg = NULL;
failed: