Skip to content

Commit dba40d4

Browse files
mdabrowsshligit
authored andcommitted
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>
1 parent 8c24259 commit dba40d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/md/raid1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,8 @@ static void alloc_behind_master_bio(struct r1bio *r1_bio,
11021102
goto skip_copy;
11031103
}
11041104

1105+
behind_bio->bi_write_hint = bio->bi_write_hint;
1106+
11051107
while (i < vcnt && size) {
11061108
struct page *page;
11071109
int len = min_t(int, PAGE_SIZE, size);

0 commit comments

Comments
 (0)