[dm-devel] [PATCH 01/17] btrfs: update an stale comment on btrfs_submit_bio_hook()
Qu Wenruo
wqu at suse.com
Wed Dec 1 05:17:40 UTC 2021
This function is renamed to btrfs_submit_data_bio(), update the comment
and add extra reason why it doesn't completely follow the same rule in
btrfs_submit_data_bio().
Signed-off-by: Qu Wenruo <wqu at suse.com>
---
fs/btrfs/inode.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 504cf090fc88..6079d30f83e8 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8202,7 +8202,13 @@ static inline blk_status_t btrfs_submit_dio_bio(struct bio *bio,
bool write = btrfs_op(bio) == BTRFS_MAP_WRITE;
blk_status_t ret;
- /* Check btrfs_submit_bio_hook() for rules about async submit. */
+ /*
+ * Check btrfs_submit_data_bio() for rules about async submit.
+ *
+ * The only exception is for RAID56, when there are more than one bios
+ * to submit, async submit seems to make it harder to collect csums
+ * for the full stripe.
+ */
if (async_submit)
async_submit = !atomic_read(&BTRFS_I(inode)->sync_writers);
--
2.34.1
More information about the dm-devel
mailing list