rs->rs_xid = req->rq_xid;
rs->rs_transno = req->rq_transno;
rs->rs_export = exp;
+ rs->rs_opc = lustre_msg_get_opc(rs->rs_msg);
spin_lock(&exp->exp_uncommitted_replies_lock);
CDEBUG(D_NET, "rs transno = "LPU64", last committed = "LPU64"\n",
if (oldrep->rs_xid != req->rq_xid)
continue;
- if (lustre_msg_get_opc(oldrep->rs_msg) !=
- lustre_msg_get_opc(req->rq_reqmsg))
+ if (oldrep->rs_opc != lustre_msg_get_opc(req->rq_reqmsg))
CERROR ("Resent req xid "LPU64" has mismatched opc: "
"new %d old %d\n", req->rq_xid,
lustre_msg_get_opc(req->rq_reqmsg),
- lustre_msg_get_opc(oldrep->rs_msg));
+ oldrep->rs_opc);
svc = oldrep->rs_service;
spin_lock (&svc->srv_lock);
CWARN("Stealing %d locks from rs %p x"LPD64".t"LPD64
" o%d NID %s\n",
oldrep->rs_nlocks, oldrep,
- oldrep->rs_xid, oldrep->rs_transno,
- lustre_msg_get_opc(oldrep->rs_msg),
+ oldrep->rs_xid, oldrep->rs_transno, oldrep->rs_opc,
libcfs_nid2str(exp->exp_connection->c_peer.nid));
for (i = 0; i < oldrep->rs_nlocks; i++)
CWARN("All locks stolen from rs %p x"LPD64".t"LPD64
" o%d NID %s\n",
rs,
- rs->rs_xid, rs->rs_transno,
- lustre_msg_get_opc(rs->rs_msg),
+ rs->rs_xid, rs->rs_transno, rs->rs_opc,
libcfs_nid2str(exp->exp_connection->c_peer.nid));
}