]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f8b79188ae59ff0e4ddf2002996ddcd8990f083
tree36dcc6dec700e87b5e7df12d361e9b17345f778b
parent7531c2698a7b4ba1026c98de5f18ec1f1fff1a8f
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