Permalink
Browse files

b=23345 add debugging information to late lock cancels

Print out the arrival time of the delayed cancel RPC so we can
determine whether it was waiting in the queue a long time, or
whether it arrived late on the network.
  • Loading branch information...
1 parent bdb1bda commit d8d4105a3c9a392b697ef710629bfc1f1c4c3e3c Andreas Dilger committed with morrone Jul 20, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 lustre/ldlm/ldlm_lockd.c
@@ -1818,9 +1818,11 @@ static int ldlm_cancel_handler(struct ptlrpc_request *req)
if (req->rq_export == NULL) {
struct ldlm_request *dlm_req;
- CERROR("operation %d from %s with bad export cookie "LPU64"\n",
- lustre_msg_get_opc(req->rq_reqmsg),
- libcfs_id2str(req->rq_peer),
+ CERROR("%s from %s arrived at %lu with bad export cookie "
+ LPU64"\n",
+ ll_opcode2str(lustre_msg_get_opc(req->rq_reqmsg)),
+ libcfs_nid2str(req->rq_peer.nid),
+ req->rq_arrival_time.tv_sec,
lustre_msg_get_handle(req->rq_reqmsg)->cookie);
if (lustre_msg_get_opc(req->rq_reqmsg) == LDLM_CANCEL) {

0 comments on commit d8d4105

Please sign in to comment.