Repository navigation
Commit d16919a
Btrfs: raid56: iterate raid56 internal bio with bio_for_each_segment_all
commit 0198e5b 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: 6592e58 ("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>1 parent e06f7b6 commit d16919a
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1432 | 1432 | | |
1433 | 1433 | | |
1434 | 1434 | | |
1435 | | - | |
1436 | | - | |
| 1435 | + | |
| 1436 | + | |
1437 | 1437 | | |
1438 | | - | |
1439 | | - | |
| 1438 | + | |
1440 | 1439 | | |
1441 | | - | |
1442 | | - | |
| 1440 | + | |
| 1441 | + | |
1443 | 1442 | | |
1444 | 1443 | | |
1445 | 1444 | | |
| |||
0 commit comments