raid5: don't duplicate code for different paths in handle_stripe
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Tue, 28 Jul 2020 10:01:43 +0000 (12:01 +0200)
committerSong Liu <songliubraving@fb.com>
Mon, 3 Aug 2020 06:03:52 +0000 (23:03 -0700)
commit3a31cf3d210f85d57fd302d83514832ebacb3ca7
tree36dcc6dec700e87b5e7df12d361e9b17345f778b
parent01b5d32a57fe83820d014485a4c41965bc3b5ce4
raid5: don't duplicate code for different paths in handle_stripe

As we can see, R5_LOCKED is set and s.locked is increased whether
R5_ReWrite is set or not, so move it to common path.

Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid5.c