raid10: refactor common wait code from regular read/write request
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 7 Dec 2018 10:24:21 +0000 (18:24 +0800)
committerShaohua Li <shli@fb.com>
Thu, 20 Dec 2018 16:53:24 +0000 (08:53 -0800)
commitcaea3c47ad515210129f06b6bbe53f82f69efebe
tree41884b7f0548c1c9c3d29ba0bfffe97b78f3bfbb
parent37b22c28946046e587c12b2b5bdaba7062e23f75
raid10: refactor common wait code from regular read/write request

Both raid10_read_request and raid10_write_request share
the same code at the beginning of them, so introduce
regular_request_wait to clean up code, and call it in
both request functions.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid10.c