@@ -1211,7 +1211,7 @@ struct ptlrpc_bulk_desc {
u64 bd_last_mbits;
struct ptlrpc_cb_id bd_cbid; /* network callback info */
- lnet_nid_t bd_sender; /* stash event::sender */
+ struct lnet_nid bd_sender; /* stash event::sender */
int bd_md_count; /* # valid entries in bd_mds */
int bd_md_max_brw; /* max entries in bd_mds */
@@ -2253,9 +2253,9 @@ static int osc_brw_fini_request(struct ptlrpc_request *req, int rc)
goto out;
if (req->rq_bulk &&
- lnet_nid_to_nid4(&peer->nid) != req->rq_bulk->bd_sender) {
+ !nid_same(&peer->nid, &req->rq_bulk->bd_sender)) {
via = " via ";
- router = libcfs_nid2str(req->rq_bulk->bd_sender);
+ router = libcfs_nidstr(&req->rq_bulk->bd_sender);
}
if (server_cksum != client_cksum) {
@@ -213,7 +213,7 @@ void client_bulk_callback(struct lnet_event *ev)
if (ev->type != LNET_EVENT_UNLINK && ev->status == 0) {
desc->bd_nob_transferred += ev->mlength;
- desc->bd_sender = lnet_nid_to_nid4(&ev->sender);
+ desc->bd_sender = ev->sender;
} else {
/* start reconnect and resend if network error hit */
spin_lock(&req->rq_lock);