btrfs: raid56: transfer the bio counter reference to the raid submission helpers
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Jun 2022 10:04:10 +0000 (12:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:40 +0000 (17:45 +0200)
commitb9af128d1e81645e7d9030e30def06ea5032f201
tree2057050cf71ef22515f913177387e521b2e95d7e
parent6065fd95dae1013f339c78d067eb71f0761c654b
btrfs: raid56: transfer the bio counter reference to the raid submission helpers

Transfer the bio counter reference acquired by btrfs_submit_bio to
raid56_parity_write and raid56_parity_recovery together with the bio
that the reference was acquired for instead of acquiring another
reference in those helpers and dropping the original one in
btrfs_submit_bio.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c
fs/btrfs/volumes.c