David Sterba 3065ae5b85 btrfs: add missing device::flush_bio puts
This fixes potential bio leaks, in several error paths. Unfortunatelly
the device structure freeing is opencoded in many places and I missed
them when introducing the flush_bio.

Most of the time, devices get freed through call_rcu(..., free_device),
so it at least it's not that easy to hit the leak, but it's still
possible through the path that frees stale devices.

Fixes: e0ae99941423 ("btrfs: preallocate device flush bio")
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-11-15 14:45:26 +01:00
..
2017-11-01 20:45:35 +01:00
2017-11-01 20:45:35 +01:00
2017-11-01 20:45:35 +01:00
2017-11-01 20:45:35 +01:00
2017-10-30 12:28:00 +01:00
2017-10-30 12:28:00 +01:00
2017-10-30 12:27:57 +01:00
2017-11-01 20:45:35 +01:00