From: "yu kuai" <yukuai@fygo.io>
To: "Abd-Alrhman Masalkhi" <abd.masalkhi@gmail.com>,
<song@kernel.org>, <yukuai@fygo.io>, <magiclinan@didiglobal.com>,
<xiao@kernel.org>, <axboe@kernel.dk>, <hare@suse.de>,
<john.g.garry@oracle.com>, <martin.petersen@oracle.com>,
<vverma@digitalocean.com>
Cc: <linux-raid@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<yukuai@fygo.io>
Subject: Re: [PATCH v2 0/4] md/raid1,raid10: fix write-path reference leaks and clean up error handling
Date: Sun, 21 Jun 2026 02:31:36 +0800 [thread overview]
Message-ID: <1a6ea422-8d8b-4ab0-8ac5-ce515b2a3f9b@fygo.io> (raw)
In-Reply-To: <20260613182810.1317258-1-abd.masalkhi@gmail.com>
在 2026/6/14 2:28, Abd-Alrhman Masalkhi 写道:
> Hi,
>
> This series fixes several write-path failure handling issues in raid1 and
> raid10 and then follows up with a cleanup of raid1_write_request().
>
> The first two patches fix writes_pending leaks caused by failure paths
> that complete bios without reaching the normal write completion path.
> The raid1 fix also addresses a barrier reference leak when
> wait_blocked_rdev() fails after wait_barrier() succeeds.
>
> The third patch fixes additional writes_pending and barrier reference
> leaks in raid10 discard handling.
>
> The final patch simplifies raid1_write_request() error handling.
>
> Patches:
> md/raid1: fix writes_pending and barrier reference leaks on write failures
> md/raid10: fix writes_pending leak on write request failures
> md/raid10: fix writes_pending and barrier reference leaks on discard failures
> md/raid1: simplify raid1_write_request() error handling
>
> Changes in v2:
> - fix writes_pending leaks in addition to the barrier reference leaks
> - add raid10 fixes for analogous write and discard failure paths
> - add a follow-up cleanup patch to simplify raid1_write_request()
> - simplifies raid1_write_request() error handling.
> - Link v1: https://lore.kernel.org/linux-raid/20260611132500.763528-1-abd.masalkhi@gmail.com/
>
> Thanks,
> Abd-Alrhman
>
> Abd-Alrhman Masalkhi (4):
> md/raid1: fix writes_pending and barrier reference leaks on write
> failures
> md/raid10: fix writes_pending leak on write request failures
> md/raid10: fix writes_pending and barrier reference leaks on discard
> failures
> md/raid1: simplify raid1_write_request() error handling
>
> drivers/md/raid1.c | 74 ++++++++++++++++++++++++---------------------
> drivers/md/raid10.c | 28 ++++++++++++-----
> 2 files changed, 60 insertions(+), 42 deletions(-)
Applied to md-7.2
--
Thanks,
Kuai
prev parent reply other threads:[~2026-06-20 18:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-13 18:28 Abd-Alrhman Masalkhi
2026-06-13 18:28 ` [PATCH v2 1/4] md/raid1: fix writes_pending and barrier reference leaks on write failures Abd-Alrhman Masalkhi
2026-06-13 18:28 ` [PATCH v2 2/4] md/raid10: fix writes_pending leak on write request failures Abd-Alrhman Masalkhi
2026-06-13 18:28 ` [PATCH v2 3/4] md/raid10: fix writes_pending and barrier reference leaks on discard failures Abd-Alrhman Masalkhi
2026-06-13 18:28 ` [PATCH v2 4/4] md/raid1: simplify raid1_write_request() error handling Abd-Alrhman Masalkhi
2026-06-20 18:31 ` yu kuai [this message]
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=1a6ea422-8d8b-4ab0-8ac5-ce515b2a3f9b@fygo.io \
--to=yukuai@fygo.io \
--cc=abd.masalkhi@gmail.com \
--cc=axboe@kernel.dk \
--cc=hare@suse.de \
--cc=john.g.garry@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=magiclinan@didiglobal.com \
--cc=martin.petersen@oracle.com \
--cc=song@kernel.org \
--cc=vverma@digitalocean.com \
--cc=xiao@kernel.org \
/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
all inboxes | Powered by JetHome®