]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: raid56: wait for I/O completion in submit_read_bios
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2023 06:23:27 +0000 (07:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:54 +0000 (19:38 +0100)
commit1c76fb7b31a43ad8b63faa3c6612b04eb3dea5d6
treea1c01d3c69cefe64ca0fa599d36d29d05d1bf246
parent4d7627010bc24f68d617c1c455e12a3dfcffcb2c
btrfs: raid56: wait for I/O completion in submit_read_bios

In addition to setting up the end_io handler and submitting the bios in
submit_read_bios, also wait for them to be completed instead of waiting
for the completion manually in all three callers.

Rename submit_read_bios to submit_read_wait_bio_list to make it clear
it waits for the bios as well.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c