Lines Matching refs:group
20 * We group bitmap updates into batches. Each batch has a number.
177 struct r5worker_group *group;
187 struct r5worker_group *group;
188 group = conf->worker_groups + cpu_to_group(cpu);
190 list_add_tail(&sh->lru, &group->loprio_list);
192 list_add_tail(&sh->lru, &group->handle_list);
193 group->stripes_cnt++;
194 sh->group = group;
202 group = conf->worker_groups + cpu_to_group(sh->cpu);
204 group->workers[0].working = true;
206 queue_work_on(sh->cpu, raid5_wq, &group->workers[0].work);
208 thread_cnt = group->stripes_cnt / MAX_STRIPE_BATCH - 1;
211 if (group->workers[i].working == false) {
212 group->workers[i].working = true;
214 &group->workers[i].work);
662 if (sh->group) {
663 sh->group->stripes_cnt--;
664 sh->group = NULL;
5616 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group)
5633 } else if (group != ANY_GROUP) {
5634 handle_list = try_loprio ? &conf->worker_groups[group].loprio_list :
5635 &conf->worker_groups[group].handle_list;
5636 wg = &conf->worker_groups[group];
5676 group == ANY_GROUP ||
5678 cpu_to_group(tmp->cpu) == group) {
5702 sh->group = NULL;
6690 static int handle_active_stripes(struct r5conf *conf, int group,
6700 (sh = __get_priority_stripe(conf, group)) != NULL)
6743 struct r5worker_group *group = worker->group;
6744 struct r5conf *conf = group->conf;
6746 int group_id = group - conf->worker_groups;
7313 struct r5worker_group *group;
7315 group = &(*worker_groups)[i];
7316 INIT_LIST_HEAD(&group->handle_list);
7317 INIT_LIST_HEAD(&group->loprio_list);
7318 group->conf = conf;
7319 group->workers = workers + i * cnt;
7322 struct r5worker *worker = group->workers + j;
7323 worker->group = group;