From: Yang Xiuwei <yangxiuwei@kylinos.cn>
To: vulab@iscas.ac.cn
Cc: axboe@kernel.dk, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
Yang Xiuwei <yangxiuwei@kylinos.cn>
Subject: Re: [PATCH] block: Fix dio->ref leak on integrity error in __blkdev_direct_IO()
Date: Fri, 26 Jun 2026 16:58:45 +0800 [thread overview]
Message-ID: <20260626085845.3461889-1-yangxiuwei@kylinos.cn> (raw)
In-Reply-To: <20260625092106.47695-1-vulab@iscas.ac.cn>
---
Hi Wentao,
On Thu, Jun 25, 2026 at 05:21:06PM +0800, Wentao Liang wrote:
> Fix by matching the existing error handling pattern used for
> blkdev_iov_iter_get_pages() failure: end the current bio with an error
> status and break out of the submission loop.
Looks good to me.
> + if (unlikely(ret)) {
> + bio->bi_status = errno_to_blk_status(ret);
> + bio_endio(bio);
> + break;
> + }
Small nit: consider bio_endio_status(bio, errno_to_blk_status(ret))
instead, now that the helper exists.
Reviewed-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Thanks,
Yang Xiuwei
next prev parent reply other threads:[~2026-06-26 8:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-25 9:21 Wentao Liang
2026-06-26 8:58 ` Yang Xiuwei [this message]
2026-06-26 14:24 ` Keith Busch
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=20260626085845.3461889-1-yangxiuwei@kylinos.cn \
--to=yangxiuwei@kylinos.cn \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=vulab@iscas.ac.cn \
/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®