@@ -774,7 +774,7 @@ int ptlrpc_register_rqbd(struct ptlrpc_request_buffer_desc *rqbd)
struct lnet_md md;
struct lnet_me *me;
- CDEBUG(D_NET, "LNetMEAttach: portal %d\n",
+ CDEBUG(D_NET, "%s: registering portal %d\n", service->srv_name,
service->srv_req_portal);
if (OBD_FAIL_CHECK(OBD_FAIL_PTLRPC_RQBD))
@@ -789,8 +789,9 @@ int ptlrpc_register_rqbd(struct ptlrpc_request_buffer_desc *rqbd)
rqbd->rqbd_svcpt->scp_cpt >= 0 ?
LNET_INS_LOCAL : LNET_INS_AFTER);
if (IS_ERR(me)) {
- CERROR("LNetMEAttach failed: %ld\n", PTR_ERR(me));
- return -ENOMEM;
+ CERROR("%s: LNetMEAttach failed: rc = %ld\n",
+ service->srv_name, PTR_ERR(me));
+ return PTR_ERR(me);
}
LASSERT(rqbd->rqbd_refcount == 0);
@@ -810,9 +811,9 @@ int ptlrpc_register_rqbd(struct ptlrpc_request_buffer_desc *rqbd)
return 0;
}
- CERROR("ptlrpc: LNetMDAttach failed: rc = %d\n", rc);
+ CERROR("%s: LNetMDAttach failed: rc = %d\n", service->srv_name, rc);
LASSERT(rc == -ENOMEM);
rqbd->rqbd_refcount = 0;
- return -ENOMEM;
+ return rc;
}