]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: fix DynamicPerfStats usage in ClientRequest
authorSamuel Just <sjust@redhat.com>
Sat, 5 Apr 2025 01:57:33 +0000 (18:57 -0700)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 30 Apr 2025 08:22:09 +0000 (08:22 +0000)
commit064df68b6b59b04d8773849c30814bc453f88ccc
treeaf22cf92e4d30346d9db34fe29a079c593d136cb
parent0b8306eddd977dbe57343c43ab8b80801f6399da
crimson: fix DynamicPerfStats usage in ClientRequest

ClientRequest::get_connection() return l_conn, which will be
null by the time PG::add_client_request_lat is called in
ClientRequest::do_process.  Modify get_connection() to
return a Connection& from whichever of l_conn or r_conn
isn't null.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 794bb024efa94cb2bb2a90df226bab05c8b9449b)
src/crimson/osd/osd_operations/client_request.h
src/osd/DynamicPerfStats.h