From: David Sterba <dsterba@suse.cz>
To: Naohiro Aota <naohiro.aota@wdc.com>
Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com,
linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk,
david@fromorbit.com
Subject: Re: [PATCH v4 0/3] protect relocation with sb_start_write
Date: Wed, 30 Mar 2022 16:19:25 +0200 [thread overview]
Message-ID: <20220330141924.GE2237@twin.jikos.cz> (raw)
In-Reply-To: <cover.1648535838.git.naohiro.aota@wdc.com>
On Tue, Mar 29, 2022 at 03:55:57PM +0900, Naohiro Aota wrote:
> This series is a follow-up to the series below [1]. The old series added
> an assertion to btrfs_relocate_chunk() to check if it is protected
> with sb_start_write(). However, it revealed another location we need
> to add sb_start_write() [2].
>
> Also, this series moved the ASSERT from btrfs_relocate_chunk() to
> btrfs_relocate_block_group() because we do not need to call
> sb_start_write() on a non-data block group [3].
>
> [1] https://lore.kernel.org/linux-btrfs/cover.1645157220.git.naohiro.aota@wdc.com/T/
>
> [2] https://lore.kernel.org/linux-btrfs/cover.1645157220.git.naohiro.aota@wdc.com/T/#e06eecc07ce1cd1e45bfd30a374bd2d15b4fd76d8
>
> [3] https://lore.kernel.org/linux-btrfs/YjMSaLIhKNcKUuHM@debian9.Home/
>
> Patch 1 adds sb_{start,end}_write() to the resumed async balancing.
>
> Patches 2 and 3 add an ASSERT to catch a future error.
>
> --
> v4:
> - Fix subject of patch 2 (Filipe)
> - Revise the comment for the ASSERT (Filipe)
> v3:
> - Only add sb_write_started(), which we really use. (Dave Chinner)
> - Drop patch "btrfs: mark device addition as mnt_want_write_file" (Filipe Manana)
> - Narrow asserting region to btrfs_relocate_block_group() and check only
> when the BG is data BG. (Filipe Manana)
> v2:
> - Use mnt_want_write_file() instead of sb_start_write() for
> btrfs_ioctl_add_dev()
> - Drop bogus fixes tag
> - Change the stable target to meaningful 4.9+
>
> Naohiro Aota (3):
> btrfs: mark resumed async balance as writing
> fs: add a check function for sb_start_write()
> btrfs: assert that relocation is protected with sb_start_write()
Added to misc-next, with the comment of 3/3 updated according to
Filipe's suggestion. Thanks.
prev parent reply other threads:[~2022-03-30 14:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-29 6:55 [PATCH v4 0/3] protect relocation with sb_start_write Naohiro Aota
2022-03-29 6:55 ` [PATCH v4 1/3] btrfs: mark resumed async balance as writing Naohiro Aota
2022-03-29 6:55 ` [PATCH v4 2/3] fs: add a check function for sb_start_write() Naohiro Aota
2022-03-29 6:56 ` [PATCH v4 3/3] btrfs: assert that relocation is protected with sb_start_write() Naohiro Aota
2022-03-29 10:10 ` Filipe Manana
2022-03-30 14:19 ` David Sterba [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220330141924.GE2237@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=david@fromorbit.com \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=naohiro.aota@wdc.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox