mbox series

[STABLE,5.18,v2,0/3] btrfs: backport zoned mode fixes

Message ID 20220808020201.712924-1-naohiro.aota@wdc.com (mailing list archive)
Headers show
Series btrfs: backport zoned mode fixes | expand

Message

Naohiro Aota Aug. 8, 2022, 2:01 a.m. UTC
These patches are backport for the 5.18 branch.

They all fixes zoned mode related issued on btrfs.

The patch 3 looks different from upstream commit b3a3b0255797 ("btrfs:
zoned: drop optimization of zone finish") as a refactoring patch is not
picked into the stable branch. But, essentially, they do the same thing
which always zone finish the zones after (nearly) full write.

The v2 just amend a line to add a missing variable declaration.

Naohiro Aota (3):
  btrfs: zoned: prevent allocation from previous data relocation BG
  btrfs: zoned: fix critical section of relocation inode writeback
  btrfs: zoned: drop optimization of zone finish

 fs/btrfs/block-group.h |  1 +
 fs/btrfs/extent-tree.c | 20 +++++++++++++++--
 fs/btrfs/extent_io.c   |  3 ++-
 fs/btrfs/inode.c       |  2 ++
 fs/btrfs/zoned.c       | 50 +++++++++++++++++++++++++++++++++++++-----
 fs/btrfs/zoned.h       |  5 +++++
 6 files changed, 73 insertions(+), 8 deletions(-)

Comments

Greg KH Aug. 8, 2022, 1:41 p.m. UTC | #1
On Mon, Aug 08, 2022 at 11:01:58AM +0900, Naohiro Aota wrote:
> These patches are backport for the 5.18 branch.
> 
> They all fixes zoned mode related issued on btrfs.
> 
> The patch 3 looks different from upstream commit b3a3b0255797 ("btrfs:
> zoned: drop optimization of zone finish") as a refactoring patch is not
> picked into the stable branch. But, essentially, they do the same thing
> which always zone finish the zones after (nearly) full write.
> 
> The v2 just amend a line to add a missing variable declaration.
> 
> Naohiro Aota (3):
>   btrfs: zoned: prevent allocation from previous data relocation BG
>   btrfs: zoned: fix critical section of relocation inode writeback
>   btrfs: zoned: drop optimization of zone finish
> 
>  fs/btrfs/block-group.h |  1 +
>  fs/btrfs/extent-tree.c | 20 +++++++++++++++--
>  fs/btrfs/extent_io.c   |  3 ++-
>  fs/btrfs/inode.c       |  2 ++
>  fs/btrfs/zoned.c       | 50 +++++++++++++++++++++++++++++++++++++-----
>  fs/btrfs/zoned.h       |  5 +++++
>  6 files changed, 73 insertions(+), 8 deletions(-)
> 
> -- 
> 2.35.1
> 

Now queued up.