alloc_thread_groups
static int alloc_thread_groups(struct r5conf *conf, int cnt,
err = alloc_thread_groups(conf, new, &group_cnt, &new_groups);
if (!alloc_thread_groups(conf, 0, &group_cnt, &new_group)) {