]> www.infradead.org Git - users/dwmw2/linux.git/commit
md/raid10: Handle bio_split() errors
authorJohn Garry <john.g.garry@oracle.com>
Mon, 11 Nov 2024 11:21:50 +0000 (11:21 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Nov 2024 15:35:46 +0000 (08:35 -0700)
commit4cf58d9529097328b669e3c8693ed21e3a041903
tree358da8445b415612523f96a3b4a83010a497c123
parentb1a7ad8b5c4fa28325ee7b369a2d545d3e16ccde
md/raid10: Handle bio_split() errors

Add proper bio_split() error handling. For any error, call
raid_end_bio_io() and return. Except for discard, where we end the bio
directly.

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-7-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid10.c