md: raid10: refactor code of read reshape's .bi_end_io
authorMing Lei <tom.leiming@gmail.com>
Thu, 16 Mar 2017 16:12:32 +0000 (00:12 +0800)
committerShaohua Li <shli@fb.com>
Fri, 24 Mar 2017 17:41:37 +0000 (10:41 -0700)
commit81fa152008ac903877b59bcc7d16777c3292c206
treeb7631495d46cf363707c14caa4fa43179728decd
parent841c1316c7da6199a7df473893c141943991a756
md: raid10: refactor code of read reshape's .bi_end_io

reshape read request is a bit special and requires one extra
bio which isn't allocated from r10buf_pool.

Refactor the .bi_end_io for read reshape, so that we can use
raid10's resync page mangement approach easily in the following
patches.

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