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 17:54:34 +0200 |
commit | dba40d46ebf41e3f7ac9480609529bb6037a918d (patch) | |
tree | cce0f0054ab366a0fc93af651221a47f444eba00 /drivers/md/raid1.c | |
parent | md/raid1: exit sync request if MD_RECOVERY_INTR is set (diff) | |
download | linux-dba40d46ebf41e3f7ac9480609529bb6037a918d.tar.xz linux-dba40d46ebf41e3f7ac9480609529bb6037a918d.zip |
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/raid1.c')
-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); |