Thread (23 messages) 23 messages, 4 authors, 2021-06-11

Re: [PATCH 4/9] btrfs: hunt down the BUG_ON()s inside btrfs_submit_compressed_write()

From: Johannes Thumshirn <hidden>
Date: 2021-06-11 07:36:40

On 11/06/2021 03:32, Qu Wenruo wrote:
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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help