md/raid10: make sync_request_write() call bio_copy_data()
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 7 May 2015 06:34:20 +0000 (23:34 -0700)
committerNeilBrown <neilb@suse.de>
Tue, 16 Jun 2015 23:59:57 +0000 (09:59 +1000)
commitc31df25f20e35add6a453328c61eca15434fae18
tree8d1d16c7ed67de46d22b6c959444b28c571eeb55
parent0f57d86787d8b1076ea8f9cbdddda2a46d534a27
md/raid10: make sync_request_write() call bio_copy_data()

Refactor sync_request_write() of md/raid10 to use bio_copy_data()
instead of open coding bio_vec iterations.

Cc: Christoph Hellwig <hch@infradead.org>
Cc: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
[dpark: add more description in commit message]
Signed-off-by: Dongsu Park <dpark@posteo.net>
Signed-off-by: Ming Lin <mlin@kernel.org>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c