From: Christoph Hellwig <hch@infradead.org>
To: Zhou Minqiang <zhouminqiang2@huawei.com>
Cc: song@kernel.org, yukuai@fygo.io, neilb@suse.com,
artur.paszkiewicz@intel.com, shli@kernel.org, axboe@kernel.dk,
linux-raid@vger.kernel.org, chengzhihao1@huawei.com,
yangerkun@huawei.com, yi.zhang@huawei.com
Subject: Re: [PATCH] md/raid10: reset bi_offset in sync_request_write()
Date: Tue, 24 Nov 2026 21:03:35 -0800 [thread overview]
Message-ID: <awZsJ5H6uEH4so8D@infradead.org> (raw)
In-Reply-To: <20261124060856.559865-1-zhouminqiang2@huawei.com>
On Tue, Nov 24, 2026 at 02:08:56PM +0800, Zhou Minqiang wrote:
> +++ b/drivers/md/raid10.c
> @@ -2330,6 +2330,7 @@ static void sync_request_write(struct mddev *mddev, struct r10bio *r10_bio)
> fbio = r10_bio->devs[i].bio;
> fbio->bi_iter.bi_size = r10_bio->sectors << 9;
> fbio->bi_iter.bi_idx = 0;
> + fbio->bi_iter.bi_offset = 0;
> fpages = get_resync_pages(fbio)->pages;
Directly messing with the iterator is a really bad idea. This needs to
use bio_reuse or bio_reset.
next prev parent reply other threads:[~2026-11-25 5:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 6:08 [PATCH] md/raid10: reset bi_offset in sync_request_write() Zhou Minqiang
2026-11-25 5:03 ` Christoph Hellwig [this message]
2026-11-26 9:00 ` zhouminqiang
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=awZsJ5H6uEH4so8D@infradead.org \
--to=hch@infradead.org \
--cc=artur.paszkiewicz@intel.com \
--cc=axboe@kernel.dk \
--cc=chengzhihao1@huawei.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.com \
--cc=shli@kernel.org \
--cc=song@kernel.org \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai@fygo.io \
--cc=zhouminqiang2@huawei.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