btrfs: raid56: introduce the main entrance for RMW path
authorQu Wenruo <wqu@suse.com>
Tue, 1 Nov 2022 11:16:08 +0000 (19:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:49 +0000 (18:00 +0100)
commit5eb30ee26fa4dbd2d31f50ee3b4212933f86cb57
tree240db57b5c1aa6288edf3bf9de1549cab95677e6
parent6486d21c99cb46666c11632e4d595568863b965c
btrfs: raid56: introduce the main entrance for RMW path

The new entrance will be called rmw_rbio(), it will have a streamlined
workflow by using submit-and-wait method.

Thus there will be no weird jumps between tons of functions, thus way
more reader friendly, and will make later expansion easier, as it's now
a straight workflow, the timing is way more clear.

Unfortunately we can not yet migrate the RMW path to use this new
entrance as we still need extra work to address the plug and
unlock_stripe() function.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c
fs/btrfs/raid56.h