Lines Matching defs:jobs
51 * We maintain three lists of jobs:
53 * i) jobs waiting for pages
54 * ii) jobs that have pages, and are waiting for the io to be issued.
55 * iii) jobs that have completed.
244 static struct kcopyd_job *pop(struct list_head *jobs,
252 if (!list_empty(jobs)) {
253 job = list_entry(jobs->next, struct kcopyd_job, list);
261 static void push(struct list_head *jobs, struct kcopyd_job *job)
267 list_add_tail(&job->list, jobs);
272 static void push_head(struct list_head *jobs, struct kcopyd_job *job)
278 list_add(&job->list, jobs);
386 * of successful jobs.
388 static int process_jobs(struct list_head *jobs, struct dm_kcopyd_client *kc,
394 while ((job = pop(jobs, kc))) {
413 push_head(jobs, job);
433 * complete jobs can free some pages for pages jobs.
434 * Pages jobs when successful will jump onto the io jobs
435 * list. io jobs call wake when they complete and it all
446 * jobs.
529 * Create some little jobs that will do the move between
655 /* Wait for completion of all jobs submitted by this client. */