From d2e2164037164f213437797733b940d68794cff1 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Thu, 21 Aug 2014 15:59:23 -0500 Subject: [PATCH] LU-5531 osc: Debug to match extent to brw RPC Currently, it's difficult to match brw RPCs to objects and extents from client logs. This patch adds a D_RPCTRACE debug message giving the necessary information. Signed-off-by: Patrick Farrell Change-Id: Ic3470a805f00b5d9c0f6f72470d3f3eb48a10b7a Reviewed-on: http://review.whamcloud.com/11548 Tested-by: Jenkins Reviewed-by: Alexey Lyashkov Tested-by: Maloo Reviewed-by: Ann Koehler Reviewed-by: Ryan Haasken Reviewed-by: Jinshan Xiong Reviewed-by: Oleg Drokin --- lustre/osc/osc_request.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 4fa4259..c2203c4 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -1413,7 +1413,11 @@ static int osc_brw_prep_request(int cmd, struct client_obd *cli,struct obdo *oa, if (ocapa && reserve) aa->aa_ocapa = capa_get(ocapa); - *reqp = req; + *reqp = req; + niobuf = req_capsule_client_get(pill, &RMF_NIOBUF_REMOTE); + CDEBUG(D_RPCTRACE, "brw rpc %p - object "DOSTID" offset %lld<>%lld\n", + req, POSTID(&oa->o_oi), niobuf[0].rnb_offset, + niobuf[niocount - 1].rnb_offset + niobuf[niocount - 1].rnb_len); RETURN(0); out: -- 1.8.3.1