diff options
author | Mariusz Dabrowski <mariusz.dabrowski@intel.com> | 2018-02-14 14:23:30 +0100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2018-04-09 08:54:34 -0700 |
commit | dba40d46ebf41e3f7ac9480609529bb6037a918d (patch) | |
tree | cce0f0054ab366a0fc93af651221a47f444eba00 /drivers/md | |
parent | 8c2425932398a160f687534efe71f0ec4b92833e (diff) | |
download | linux-dba40d46ebf41e3f7ac9480609529bb6037a918d.tar.bz2 |
raid1: copy write hint from master bio to behind bio
Signed-off-by: Mariusz Dabrowski <mariusz.dabrowski@intel.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Reviewed-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 6f624311cec2..e9e3308cb0a7 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1102,6 +1102,8 @@ static void alloc_behind_master_bio(struct r1bio *r1_bio, goto skip_copy; } + behind_bio->bi_write_hint = bio->bi_write_hint; + while (i < vcnt && size) { struct page *page; int len = min_t(int, PAGE_SIZE, size); |