Josef Bacik 510671d2d8 btrfs: do not try to repair bio that has no mirror set
If we fail to submit a bio for whatever reason, we may not have setup a
mirror_num for that bio.  This means we shouldn't try to do the repair
workflow, if we do we'll hit an BUG_ON(!failrec->this_mirror) in
clean_io_failure.  Instead simply skip the repair workflow if we have no
mirror set, and add an assert to btrfs_check_repairable() to make it
easier to catch what is happening in the future.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-03-14 13:13:52 +01:00
..
2021-09-02 09:21:27 -07:00
2022-03-14 13:13:51 +01:00
2022-01-07 14:18:23 +01:00
2021-06-22 14:11:57 +02:00
2022-03-14 13:13:51 +01:00
2022-03-14 13:13:51 +01:00
2021-06-22 14:11:57 +02:00
2022-01-07 14:18:26 +01:00
2021-11-08 16:55:21 -08:00