From: Patrick Farrell Date: Thu, 21 Aug 2014 20:59:23 +0000 (-0500) Subject: LU-5531 osc: Debug to match extent to brw RPC X-Git-Tag: 2.6.53~38 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F11548%2F3;p=fs%2Flustre-release.git 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 --- 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: