Re: [PATCH 4/9] btrfs: hunt down the BUG_ON()s inside btrfs_submit_compressed_write()
From: Qu Wenruo <hidden>
Date: 2021-06-11 07:46:18
From: Qu Wenruo <hidden>
Date: 2021-06-11 07:46:18
On 2021/6/11 下午3:36, Johannes Thumshirn wrote:
On 11/06/2021 03:32, Qu Wenruo wrote:quoted
Just like btrfs_submit_compressed_read(), there are quite some BUG_ON()s inside btrfs_submit_compressed_write() for the bio submission path. Fix them using the same method: - For last bio, just endio the bio As in that case, one of the endio function of all these submitted bio will be able to free the comprssed_bio - For half-submitted bio, wait and finish the compressed_bio manually In this case, as long as all other bio finishes, we're the only one referring the compressed_bio, and can manually finish it. Signed-off-by: Qu Wenruo <redacted> ---And that one doesn't apply cleanly as well, which base did you work on?
An old misc-next branch, with some subpage patches, which shouldn't change them. I'll update the branch to solve the conflicts. Thanks, Qu