Re: [PATCH] Btrfs: use struct completion in scrub_submit_raid56_bio_wait

2017-12-05 Thread David Sterba
On Thu, Nov 30, 2017 at 05:26:39PM -0700, Liu Bo wrote: > This changes to use struct completion directly and removes 'struct > scrub_bio_ret' along with the code using it. > > This struct is used to get the return value from bio, but the caller > can access bio to get the return value directly

[PATCH] Btrfs: use struct completion in scrub_submit_raid56_bio_wait

2017-11-30 Thread Liu Bo
This changes to use struct completion directly and removes 'struct scrub_bio_ret' along with the code using it. This struct is used to get the return value from bio, but the caller can access bio to get the return value directly and is holding a reference on bio so that it won't go away