]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: count devices correctly in readahead during RAID 5/6 replace
authorOmar Sandoval <osandov@fb.com>
Fri, 19 Jun 2015 18:52:49 +0000 (11:52 -0700)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:34:26 +0000 (07:34 -0700)
commit403f201b83a366c7ae57c611a8af8edd7685e26e
tree060a03b7ad726216243bcebfc84878be0c43f6c7
parentdd8920a81e34cb3715f644ed43dba1eac02a7bc3
Btrfs: count devices correctly in readahead during RAID 5/6 replace

Commit 4acdc3440d6f ("Btrfs: fix unfinished readahead thread for raid5/6
degraded mounting") fixed a problem where we would skip a missing device
when we shouldn't have because there are no other mirrors to read from
in RAID 5/6. After commit 8f04026f489c ("Btrfs, replace: write dirty
pages into the replace target device"), the fix doesn't work when we're
doing a missing device replace on RAID 5/6 because the replace device is
counted as a mirror so we're tricked into thinking we can safely skip
the missing device. The fix is to count only the real stripes and decide
based on that.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/reada.c