From 5bcc3a330e21865b5b78a4c4596f878f12a43dbc Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Thu, 23 May 2019 14:42:53 -0500 Subject: [PATCH] LU-12333 ptlrpc: Add more flags to DEBUG_REQ_FLAGS macro The rq_req_unlinked, rq_reply_unlinked and rq_receiving_reply flags determine whether a PtlRPC request can transition out of RQ_PHASE_UNREG_RPC. Add these flags to the DEBUG_REQ_FLAGS macro to aid in debugging issues where requests are stuck in this unregistering state. Test-Parameters: trivial Signed-off-by: Chris Horn Change-Id: I0b4f424cba70a29c64035ebaccf33fdb954a2db6 Reviewed-on: https://review.whamcloud.com/34949 Reviewed-by: Ann Koehler Tested-by: Jenkins Reviewed-by: Amir Shehata Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/include/lustre_net.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lustre/include/lustre_net.h b/lustre/include/lustre_net.h index 4fd6440..b3833a7 100644 --- a/lustre/include/lustre_net.h +++ b/lustre/include/lustre_net.h @@ -1280,9 +1280,12 @@ ptlrpc_rqphase2str(struct ptlrpc_request *req) FLAG(req->rq_no_resend, "N"), \ FLAG(req->rq_waiting, "W"), \ FLAG(req->rq_wait_ctx, "C"), FLAG(req->rq_hp, "H"), \ - FLAG(req->rq_committed, "M") + FLAG(req->rq_committed, "M"), \ + FLAG(req->rq_req_unlinked, "Q"), \ + FLAG(req->rq_reply_unlinked, "U"), \ + FLAG(req->rq_receiving_reply, "r") -#define REQ_FLAGS_FMT "%s:%s%s%s%s%s%s%s%s%s%s%s%s%s" +#define REQ_FLAGS_FMT "%s:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s" void _debug_req(struct ptlrpc_request *req, struct libcfs_debug_msg_data *data, const char *fmt, ...) -- 1.8.3.1