diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2018-01-13 04:07:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-16 22:23:04 +0300 |
commit | d16919a3fe2d83ae159b82808933fefb54fc2f6e (patch) | |
tree | bf0704823bcbafc3150f296c211f63497bca0ca0 /scripts | |
parent | e06f7b686daa871c4a4cf745be30fd1864b6f9c8 (diff) | |
download | linux-d16919a3fe2d83ae159b82808933fefb54fc2f6e.tar.xz |
Btrfs: raid56: iterate raid56 internal bio with bio_for_each_segment_all
commit 0198e5b707cfeb5defbd1b71b1ec6e71580d7db9 upstream.
Bio iterated by set_bio_pages_uptodate() is raid56 internal one, so it
will never be a BIO_CLONED bio, and since this is called by end_io
functions, bio->bi_iter.bi_size is zero, we mustn't use
bio_for_each_segment() as that is a no-op if bi_size is zero.
Fixes: 6592e58c6b68e61f003a01ba29a3716e7e2e9484 ("Btrfs: fix write corruption due to bio cloning on raid5/6")
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions