Add proper bio_split() error handling. For any error, callReviewed-by: Hannes Reinecke <hare@xxxxxxx>
raid_end_bio_io() and return.
For the case of an in the write path, we need to undo the increment in
the rdev pending count and NULLify the r1_bio->bios[] pointers.
For read path failure, we need to undo rdev pending count increment from
the earlier read_balance() call.
Signed-off-by: John Garry <john.g.garry@xxxxxxxxxx>
---
drivers/md/raid1.c | 33 +++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)