From: Junichi Nomura Date: Tue, 6 Oct 2015 04:19:54 +0000 (+0000) Subject: dm: fix request-based dm error reporting X-Git-Tag: omap-for-v4.3/fixes-rc5~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50887bd139b83ce4489ed865a04bf1be5559c4ad;p=pandora-kernel.git dm: fix request-based dm error reporting end_clone_bio() is a endio callback for clone bio and should check and save the clone's bi_error for error reporting. However, 4246a0b63bd8 ("block: add a bi_error field to struct bio") changed the function to check the original bio's bi_error, which is 0. Without this fix, clone's error is ignored and reported to the original request as success. Thus data corruption will be observed. Fixes: 4246a0b63bd8 ("block: add a bi_error field to struct bio") Signed-off-by: Jun'ichi Nomura Cc: Christoph Hellwig Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed