Linux io-uring development
 help / color / mirror / Atom feed
From: Gabriel Krisman Bertazi <krisman@suse.de>
To: Guixin Liu <kanie@linux.alibaba.com>
Cc: axboe@kernel.dk,  asml.silence@gmail.com,  io-uring@vger.kernel.org
Subject: Re: [PATCH] io_uring: fix memory leak when cache init fail
Date: Mon, 23 Sep 2024 15:20:27 -0400	[thread overview]
Message-ID: <87wmj2xjlw.fsf@mailhost.krisman.be> (raw)
In-Reply-To: <20240923100512.64638-1-kanie@linux.alibaba.com> (Guixin Liu's message of "Mon, 23 Sep 2024 18:05:12 +0800")

Guixin Liu <kanie@linux.alibaba.com> writes:

> We should exit the percpu ref when cache init fail to free the
> data memory with in struct percpu_ref.
>
> Fixes: 206aefde4f88 ("io_uring: reduce/pack size of io_ring_ctx")
> Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>

Makes sense

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>

-- 
Gabriel Krisman Bertazi

  reply	other threads:[~2024-09-23 19:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-23 10:05 [PATCH] io_uring: fix memory leak when cache init fail Guixin Liu
2024-09-23 19:20 ` Gabriel Krisman Bertazi [this message]
2024-09-24  4:33 ` Jens Axboe

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=87wmj2xjlw.fsf@mailhost.krisman.be \
    --to=krisman@suse.de \
    --cc=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=io-uring@vger.kernel.org \
    --cc=kanie@linux.alibaba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox