mbox series

[0/4] btrfs: fixes for reclaim

Message ID cover.1686028197.git.naohiro.aota@wdc.com (mailing list archive)
Headers show
Series btrfs: fixes for reclaim | expand

Message

Naohiro Aota June 6, 2023, 5:36 a.m. UTC
There are several issues on the reclaim process out there:

 - Long-running reclaim process blocks removing unused BGs
 - Belonging to the reclaim list blocks it goes to the unused list
 - It tries relocation even when FS is read-only
 - Temporal failure keep a block group un-reclaimed

This series fixes them.

Naohiro Aota (4):
  btrfs: delete unused BGs while reclaiming BGs
  btrfs: move out now unused BG from the reclaim list
  btrfs: bail out reclaim process if filesystem is read-only
  btrfs: reinsert BGs failed to reclaim

 fs/btrfs/block-group.c | 43 ++++++++++++++++++++++++++++++++++++++----
 1 file changed, 39 insertions(+), 4 deletions(-)

Comments

David Sterba June 8, 2023, 11:50 a.m. UTC | #1
On Tue, Jun 06, 2023 at 02:36:32PM +0900, Naohiro Aota wrote:
> There are several issues on the reclaim process out there:
> 
>  - Long-running reclaim process blocks removing unused BGs
>  - Belonging to the reclaim list blocks it goes to the unused list
>  - It tries relocation even when FS is read-only
>  - Temporal failure keep a block group un-reclaimed
> 
> This series fixes them.
> 
> Naohiro Aota (4):
>   btrfs: delete unused BGs while reclaiming BGs
>   btrfs: move out now unused BG from the reclaim list
>   btrfs: bail out reclaim process if filesystem is read-only
>   btrfs: reinsert BGs failed to reclaim

Added to misc-next, with the fixups, thanks.