From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Christoph Hellwig <hch@lst.de>, Qu Wenruo <wqu@suse.com>
Cc: linux-btrfs@vger.kernel.org,
Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
Subject: Re: [PATCH] Revert "btrfs: fix repair of compressed extents" and "btrfs: pass a btrfs_bio to btrfs_repair_one_sector"
Date: Sat, 13 Aug 2022 14:53:09 +0800 [thread overview]
Message-ID: <ff84cdb1-fb69-ca19-d82d-658c976c89da@gmx.com> (raw)
In-Reply-To: <20220813061901.GA10401@lst.de>
On 2022/8/13 14:19, Christoph Hellwig wrote:
> On Sat, Aug 13, 2022 at 02:00:25PM +0800, Qu Wenruo wrote:
>> To fix the problem, we need to revert commit 7aa51232e204 ("btrfs: pass
>> a btrfs_bio to btrfs_repair_one_sector"), but unfortunately later commit
>> 81bd9328ab9f ("btrfs: fix repair of compressed extents") has a
>> dependency on that commit.
>
> Let's try to sort this out properly intead of doing a blind revert before
> -rc1. I'll cook up a patch to pass an explicit offset ASAP as the quick
> fix, but for the longer run: is there such a huge benefit of having
> these logically non-contigous bios? They are so different from the
> I/O stack in any other file systems that I think we'll keep running into
> problems again an again.
OK, I didn't consider the reason why we allow non-contigous page into a bio.
But indeed, if we allow that, it would be a much simpler fix.
Mind me to introduce a patch to add a new page offset contingous check
to the related code path?
Thanks,
Qu
next prev parent reply other threads:[~2022-08-13 6:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-13 6:00 [PATCH] Revert "btrfs: fix repair of compressed extents" and "btrfs: pass a btrfs_bio to btrfs_repair_one_sector" Qu Wenruo
2022-08-13 6:19 ` Christoph Hellwig
2022-08-13 6:53 ` Qu Wenruo [this message]
2022-08-13 6:58 ` Qu Wenruo
2022-08-13 7:02 ` Christoph Hellwig
2022-08-13 7:06 ` Qu Wenruo
2022-08-13 7:12 ` Christoph Hellwig
2022-08-13 6:58 ` Christoph Hellwig
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=ff84cdb1-fb69-ca19-d82d-658c976c89da@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=ce3g8jdj@umail.furryterror.org \
--cc=hch@lst.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=wqu@suse.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