Skip to content
Commit 76a05b35 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Don't loop forever on metadata IO failures



When a btrfs metadata read fails, the first thing we try to do is find
a good copy on another mirror of the block.  If this fails, read_tree_block()
ends up returning a buffer that isn't up to date.

The btrfs btree reading code was reworked to drop locks and repeat
the search when IO was done, but the changes didn't add a check for failed
reads.  The end result was looping forever on buffers that were never
going to become up to date.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 2757495c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment