[PATCH 0/2] ceph: metrics for remote object copies

From: Luís Henriques
Date: Wed Nov 03 2021 - 07:24:15 EST


Following this email, I'm sending two patches that add support for a an
extra metric in the cephfs metrics infrastructure.

The 1st patch modifies libceph so that ceph_osdc_copy_from() returns an
OSD request and makes it responsibility of the caller to do the wait (and
release the request). This is required so that the callers (currently
only the copy_file_range() syscall code) can access the request latency
timestamps.

The 2nd patch effectively adds support for the 'copyfrom' metrics.

Luís Henriques (2):
libceph: have ceph_osdc_copy_from() return the osd request
ceph: add a new metric to keep track of remote object copies

fs/ceph/debugfs.c | 3 ++-
fs/ceph/file.c | 13 ++++++++++++-
fs/ceph/metric.h | 8 ++++++++
include/linux/ceph/osd_client.h | 21 +++++++++++----------
net/ceph/osd_client.c | 27 ++++++++++++++-------------
5 files changed, 47 insertions(+), 25 deletions(-)