]> git.baikalelectronics.ru Git - kernel.git/commit
raid5: don't increment read_errors on EILSEQ return
authorNigel Croxon <ncroxon@redhat.com>
Fri, 6 Sep 2019 13:21:33 +0000 (09:21 -0400)
committerSong Liu <songliubraving@fb.com>
Fri, 13 Sep 2019 20:10:05 +0000 (13:10 -0700)
commitae6f242125ce2cdf3998ef1a7fd1cb4fd8df3b26
treeaf385c0975738ebfd5257d842d4225ad8edee99a
parent635b2208351831bb7d799262aea261ec01b4ff34
raid5: don't increment read_errors on EILSEQ return

While MD continues to count read errors returned by the lower layer.
If those errors are -EILSEQ, instead of -EIO, it should NOT increase
the read_errors count.

When RAID6 is set up on dm-integrity target that detects massive
corruption, the leg will be ejected from the array.  Even if the
issue is correctable with a sector re-write and the array has
necessary redundancy to correct it.

The leg is ejected because it runs up the rdev->read_errors beyond
conf->max_nr_stripes.  The return status in dm-drypt when there is
a data integrity error is -EILSEQ (BLK_STS_PROTECTION).

Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid5.c