diff options
author | Shaohua Li <shli@fb.com> | 2017-02-21 23:27:57 +0100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-02-23 20:59:44 +0100 |
commit | 1ec492232ed659acde8cc00b9ecc7529778e03e1 (patch) | |
tree | 5fff4d0691ad377deba45e888e5339708064ba96 /Documentation/admin-guide | |
parent | md/raid1: handle flush request correctly (diff) | |
download | linux-1ec492232ed659acde8cc00b9ecc7529778e03e1.tar.xz linux-1ec492232ed659acde8cc00b9ecc7529778e03e1.zip |
md/raid1: fix write behind issues introduced by bio_clone_bioset_partial
There are two issues, introduced by commit 8e58e32(md/raid1: use
bio_clone_bioset_partial() in case of write behind):
- bio_clone_bioset_partial() uses bytes instead of sectors as parameters
- in writebehind mode, we return bio if all !writemostly disk bios finish,
which could happen before writemostly disk bios run. So all
writemostly disk bios should have their bvec. Here we just make sure
all bios are cloned instead of fast cloned.
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'Documentation/admin-guide')
0 files changed, 0 insertions, 0 deletions