Re: [PATCH v3 2/5] ceph: replace the request_tree rbtree with an xarray keyed by r_tid

Xiubo Li <[email protected]>
Newsgroups org.kernel.vger.ceph-devel
Message-ID <CAOJNxRJWOqGTGEb0hsm5OQB_jbQE_0zWrFp3-E_FP5eecZ+O0Q@mail.gmail.com>
Hi Alex,

Good catch. Let me fix it. Thanks

- Xiubo Li

On Tue, 11 Aug 2026 at 06:41, Alex Markuze <[email protected]> wrote:
>
> Hi Xiubo,
>
> In __register_request(), ceph_mdsc_get_request(req) bumps the refcount
> before xa_store(). If xa_store() fails, the function sets r_err = -ENOMEM
> and returns without dropping the extra reference. Since the request never
> enters the xarray, __unregister_request() is never called to balance
> the get, so the ref leaks permanently.
>
> Adding ceph_mdsc_put_request(req) in the xa_store error path should
> fix it.
>
> --
> Alex Markuze
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.