diff options
author | Junichi Nomura <j-nomura@ce.jp.nec.com> | 2015-10-06 07:19:54 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-10-06 17:08:16 +0300 |
commit | 50887bd139b83ce4489ed865a04bf1be5559c4ad (patch) | |
tree | f0d20f339872dfcb613b4418f752e3eae5578e12 /net/vmw_vsock/vmci_transport.h | |
parent | 042745ee53a0a7c1f5aff191a4a24213c6dcfb52 (diff) | |
download | linux-50887bd139b83ce4489ed865a04bf1be5559c4ad.tar.xz |
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 <j-nomura@ce.jp.nec.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'net/vmw_vsock/vmci_transport.h')
0 files changed, 0 insertions, 0 deletions