From a15b60a21c12a15519d55b772a41d7710e200b49 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 18 Jul 2002 19:08:13 -0700 Subject: [PATCH] MD - Pass the correct bdev to md_error Pass the correct bdev to md_error After a call to generic_make_request, bio->bi_bdev can have changed (e.g. by a re-mapped like raid0). So we cannot trust it for reporting the source of an error. This patch takes care to find the correct bdev. --- include/linux/raid/multipath.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/raid/multipath.h b/include/linux/raid/multipath.h index 886448c201fc..bd245bbcd845 100644 --- a/include/linux/raid/multipath.h +++ b/include/linux/raid/multipath.h @@ -48,6 +48,7 @@ struct multipath_bh { mddev_t *mddev; struct bio *master_bio; struct bio bio; + int path; struct multipath_bh *next_mp; /* next for retry */ }; #endif -- cgit v1.2.3