md: raid1: improve write behind
authorMing Lei <tom.leiming@gmail.com>
Thu, 16 Mar 2017 16:12:31 +0000 (00:12 +0800)
committerShaohua Li <shli@fb.com>
Fri, 24 Mar 2017 17:41:37 +0000 (10:41 -0700)
commit841c1316c7da6199a7df473893c141943991a756
tree77bd223263ff1bc03d860f16b4ba4f60571e62b7
parentd8c84c4f8becc1fb993911e18c8aef5ecf7a72ac
md: raid1: improve write behind

This patch improve handling of write behind in the following ways:

- introduce behind master bio to hold all write behind pages
- fast clone bios from behind master bio
- avoid to change bvec table directly
- use bio_copy_data() and make code more clean

Suggested-by: Shaohua Li <shli@fb.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c
drivers/md/raid1.h