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:58:16 +0800 [thread overview]
Message-ID: <8b8b669c-fe7b-70d7-df2a-d9f0339d6372@gmx.com> (raw)
In-Reply-To: <ff84cdb1-fb69-ca19-d82d-658c976c89da@gmx.com>
On 2022/8/13 14:53, Qu Wenruo wrote:
>
>
> 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.
To answer that, the reason I found so far is purely because of btrfs
RAID profiles.
Unlike all other fses, btrfs has the in-built raid profiles, thus only
requiring the logical bytenr to be continuous will reduce the amount of
bios submitted by btrfs.
(Especially for profiles like RAID56 and RAID0/10)
Although I'm not sure if the reduced amount of bio would really cause
any different, as block layer should have its own merge optimization.
Thanks,
Qu
>
> 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:58 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
2022-08-13 6:58 ` Qu Wenruo [this message]
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=8b8b669c-fe7b-70d7-df2a-d9f0339d6372@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