Lines Matching refs:group

20  * We group bitmap updates into batches.  Each batch has a number.
169 struct r5worker_group *group;
179 struct r5worker_group *group;
180 group = conf->worker_groups + cpu_to_group(cpu);
182 list_add_tail(&sh->lru, &group->loprio_list);
184 list_add_tail(&sh->lru, &group->handle_list);
185 group->stripes_cnt++;
186 sh->group = group;
194 group = conf->worker_groups + cpu_to_group(sh->cpu);
196 group->workers[0].working = true;
198 queue_work_on(sh->cpu, raid5_wq, &group->workers[0].work);
200 thread_cnt = group->stripes_cnt / MAX_STRIPE_BATCH - 1;
203 if (group->workers[i].working == false) {
204 group->workers[i].working = true;
206 &group->workers[i].work);
762 if (sh->group) {
763 sh->group->stripes_cnt--;
764 sh->group = NULL;
846 if (head->group) {
847 head->group->stripes_cnt--;
848 head->group = NULL;
5512 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group)
5528 } else if (group != ANY_GROUP) {
5529 handle_list = try_loprio ? &conf->worker_groups[group].loprio_list :
5530 &conf->worker_groups[group].handle_list;
5531 wg = &conf->worker_groups[group];
5571 group == ANY_GROUP ||
5573 cpu_to_group(tmp->cpu) == group) {
5597 sh->group = NULL;
6365 static int handle_active_stripes(struct r5conf *conf, int group,
6376 (sh = __get_priority_stripe(conf, group)) != NULL)
6419 struct r5worker_group *group = worker->group;
6420 struct r5conf *conf = group->conf;
6422 int group_id = group - conf->worker_groups;
6978 struct r5worker_group *group;
6980 group = &(*worker_groups)[i];
6981 INIT_LIST_HEAD(&group->handle_list);
6982 INIT_LIST_HEAD(&group->loprio_list);
6983 group->conf = conf;
6984 group->workers = workers + i * cnt;
6987 struct r5worker *worker = group->workers + j;
6988 worker->group = group;