All of lore.kernel.org
 help / color / mirror / Atom feed
From: xiubli@redhat.com
To: jlayton@kernel.org, idryomov@gmail.com, zyan@redhat.com
Cc: sage@redhat.com, pdonnell@redhat.com, ceph-devel@vger.kernel.org,
	Xiubo Li <xiubli@redhat.com>
Subject: [PATCH v5 03/10] ceph: add r_end_stamp for the osdc request
Date: Tue, 28 Jan 2020 08:02:41 -0500	[thread overview]
Message-ID: <20200128130248.4266-4-xiubli@redhat.com> (raw)
In-Reply-To: <20200128130248.4266-1-xiubli@redhat.com>

From: Xiubo Li <xiubli@redhat.com>

Grab the osdc requests' end time stamp.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
---
 include/linux/ceph/osd_client.h | 1 +
 net/ceph/osd_client.c           | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h
index 9d9f745b98a1..00a449cfc478 100644
--- a/include/linux/ceph/osd_client.h
+++ b/include/linux/ceph/osd_client.h
@@ -213,6 +213,7 @@ struct ceph_osd_request {
 	/* internal */
 	unsigned long r_stamp;                /* jiffies, send or check time */
 	unsigned long r_start_stamp;          /* jiffies */
+	unsigned long r_end_stamp;          /* jiffies */
 	int r_attempts;
 	u32 r_map_dne_bound;
 
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index 8ff2856e2d52..108c9457d629 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -2389,6 +2389,8 @@ static void finish_request(struct ceph_osd_request *req)
 	WARN_ON(lookup_request_mc(&osdc->map_checks, req->r_tid));
 	dout("%s req %p tid %llu\n", __func__, req, req->r_tid);
 
+	req->r_end_stamp = jiffies;
+
 	if (req->r_osd)
 		unlink_request(req->r_osd, req);
 	atomic_dec(&osdc->num_requests);
-- 
2.21.0

  parent reply	other threads:[~2020-01-28 13:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-28 13:02 [PATCH v5 0/10] ceph: add perf metrics support xiubli
2020-01-28 13:02 ` [PATCH v5 01/10] ceph: add caps perf metric for each session xiubli
2020-01-28 13:02 ` [PATCH v5 02/10] ceph: move ceph_osdc_{read,write}pages to ceph.ko xiubli
2020-01-28 13:02 ` xiubli [this message]
2020-01-28 13:02 ` [PATCH v5 04/10] ceph: add global read latency metric support xiubli
2020-01-28 13:02 ` [PATCH v5 05/10] ceph: add global write " xiubli
2020-01-28 13:02 ` [PATCH v5 06/10] ceph: add global metadata perf " xiubli
2020-01-28 13:02 ` [PATCH v5 07/10] ceph: periodically send perf metrics to MDS xiubli
2020-01-28 13:02 ` [PATCH v5 08/10] ceph: add CEPH_DEFINE_RW_FUNC helper support xiubli
2020-01-28 13:02 ` [PATCH v5 09/10] ceph: add reset metrics support xiubli
2020-01-28 13:02 ` [PATCH v5 10/10] ceph: send client provided metric flags in client metadata xiubli
2020-01-28 14:16 ` [PATCH v5 0/10] ceph: add perf metrics support Ilya Dryomov
2020-01-29  8:23   ` Xiubo Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200128130248.4266-4-xiubli@redhat.com \
    --to=xiubli@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=idryomov@gmail.com \
    --cc=jlayton@kernel.org \
    --cc=pdonnell@redhat.com \
    --cc=sage@redhat.com \
    --cc=zyan@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.