md/raid1: factor out flush_bio_list()
authorNeilBrown <neilb@suse.com>
Wed, 5 Apr 2017 04:05:51 +0000 (14:05 +1000)
committerShaohua Li <shli@fb.com>
Tue, 11 Apr 2017 17:12:36 +0000 (10:12 -0700)
commit673ca68d93879b9ffbbed874c9e70ca6e37cab15
tree4b4f8e3b81fef6b2baaf9ec5fcbcbd6872ad66b7
parent689389a06ce79fdced85b5115717f71c71e623e0
md/raid1: factor out flush_bio_list()

flush_pending_writes() and raid1_unplug() each contain identical
copies of a fairly large slab of code.  So factor that out into
new flush_bio_list() to simplify maintenance.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c