raid5: remove worker_cnt_per_group argument from alloc_thread_groups
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Fri, 20 Dec 2019 14:46:29 +0000 (15:46 +0100)
committerSong Liu <songliubraving@fb.com>
Mon, 13 Jan 2020 19:44:09 +0000 (11:44 -0800)
commitd2c9ad41249ac862d3a3a4d5d56e6b1cd79d8a17
tree3e015504a72e4100692be5165e7c0b5d8fc42038
parentf591df3cc6d60cadf8ceff5d44af73ea6ba0a39a
raid5: remove worker_cnt_per_group argument from alloc_thread_groups

We can use "cnt" directly to update conf->worker_cnt_per_group
if alloc_thread_groups returns 0.

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