diff options
author | Paul Clements <[email protected]> | 2021-04-15 17:17:57 -0400 |
---|---|---|
committer | Song Liu <[email protected]> | 2021-04-23 09:40:17 -0700 |
commit | 2417b9869b81882ab90fd5ed1081a1cb2d4db1dd (patch) | |
tree | b94cde71229518f93e8acb45af37fa76e740ca75 /include/linux/overflow.h | |
parent | f7c7a2f9a23e5b6e0f5251f29648d0238bb7757e (diff) |
md/raid1: properly indicate failure when ending a failed write request
This patch addresses a data corruption bug in raid1 arrays using bitmaps.
Without this fix, the bitmap bits for the failed I/O end up being cleared.
Since we are in the failure leg of raid1_end_write_request, the request
either needs to be retried (R1BIO_WriteError) or failed (R1BIO_Degraded).
Fixes: eeba6809d8d5 ("md/raid1: end bio when the device faulty")
Cc: [email protected] # v5.2+
Signed-off-by: Paul Clements <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions