Re: [PATCH] btrfs: zoned: don't submit orphaned extent buffers

Johannes Thumshirn <[email protected]>
Newsgroups org.kernel.vger.linux-btrfs,org.kernel.vger.stable
Message-ID <[email protected]>
On 7/9/26 12:38 PM, Johannes Thumshirn wrote:
>>>   @@ -2420,7 +2432,7 @@ int btree_writepages(struct address_space 
>>> *mapping, struct writeback_control *wb
>>>                   btrfs_schedule_zone_finish_bg(ctx.zoned_bg, eb);
>>>                   ctx.zoned_bg->meta_write_pointer += eb->len;
>>>               }
>>> -            write_one_eb(eb, wbc);
>>> +            write_one_eb(eb, wbc, submit);
>>
>> I understand this is the minimal fix, but I can't help but wondering, 
>> would it be more instinctual to release all ebs inside a zoned 
>> metadata bg when freeing the bg?
>
OK, after reading your mail again, I think you're right. Let me have a 
look at your proposal.


> Yes but quite frankly I'm still hunting the root cause.
>
> One thing I think I've found so far is, we're re-dirtying a eb, then 
> relocation GC's the block-group, then writeback comes along trying to 
> submit these ebs but the bg is gone.
>
> This analysis could be totally bogus of cause because I missed something.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.