From: Chris Horn Date: Thu, 23 May 2019 19:42:53 +0000 (-0500) Subject: LU-12333 ptlrpc: Add more flags to DEBUG_REQ_FLAGS macro X-Git-Tag: 2.12.54~22 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=5bcc3a330e21865b5b78a4c4596f878f12a43dbc 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 --- 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, ...)