mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
dm-io: report non-retryable errors separatedly
The error codes BLK_STS_NOTSUPP and BLK_STS_INVAL should not cause leg failure on dm-raid1. This patch changes the interface to dm-io, so that it reports two error bitmaps - error_bits and unsup_bits. The unsup_bit bitmap tracks BLK_STS_NOTSUPP or BLK_STS_INVAL errors, the error_bits bitmap tracks all the other errors. dm-raid1 is changed so that it won't fail a leg if it receives an error in the unsup_bits bitmap. This patch (with62dc37a819) fixes misbehavior if the user uses unaligned bio vectors on dm-raid1. Fixes:7eac331869("iomap: simplify direct io validity check") Fixes:5ff3f74e14("block: simplify direct io validity check") Cc: stable@vger.kernel.org Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
parent
62dc37a819
commit
47a5e62f39
10 changed files with 83 additions and 54 deletions
Loading…
Add table
Add a link
Reference in a new issue