diff options
author | John Garry <john.g.garry@oracle.com> | 2024-11-11 11:21:49 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-11 08:35:46 -0700 |
commit | b1a7ad8b5c4fa28325ee7b369a2d545d3e16ccde (patch) | |
tree | 36e8ba4fe74bb9fa15da65a1daed181e0ee865ef /drivers/md/dm-snap.c | |
parent | 74538fdac3e85aae55eb4ed786478ed2384cb85d (diff) |
md/raid1: Handle bio_split() errors
Add proper bio_split() error handling. For any error, call
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.
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20241111112150.3756529-6-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-snap.c')
0 files changed, 0 insertions, 0 deletions