Lines Matching refs:jobs
411 static struct kcopyd_job *pop_io_job(struct list_head *jobs, in pop_io_job() argument
420 list_for_each_entry(job, jobs, list) { in pop_io_job()
436 static struct kcopyd_job *pop(struct list_head *jobs, in pop() argument
443 if (!list_empty(jobs)) { in pop()
444 if (jobs == &kc->io_jobs) in pop()
445 job = pop_io_job(jobs, kc); in pop()
447 job = list_entry(jobs->next, struct kcopyd_job, list); in pop()
456 static void push(struct list_head *jobs, struct kcopyd_job *job) in push() argument
462 list_add_tail(&job->list, jobs); in push()
467 static void push_head(struct list_head *jobs, struct kcopyd_job *job) in push_head() argument
472 list_add(&job->list, jobs); in push_head()
605 static int process_jobs(struct list_head *jobs, struct dm_kcopyd_client *kc, in process_jobs() argument
611 while ((job = pop(jobs, kc))) { in process_jobs()
631 push_head(jobs, job); in process_jobs()