Lines Matching refs:jobs
212 * We maintain three lists of jobs:
214 * i) jobs waiting for pages
215 * ii) jobs that have pages, and are waiting for the io to be issued.
216 * iii) jobs that have completed.
228 _job_cache = kmem_cache_create("kcopyd-jobs",
260 static inline struct kcopyd_job *pop(struct list_head *jobs)
267 if (!list_empty(jobs)) {
268 job = list_entry(jobs->next, struct kcopyd_job, list);
276 static inline void push(struct list_head *jobs, struct kcopyd_job *job)
281 list_add_tail(&job->list, jobs);
387 * of successful jobs.
389 static int process_jobs(struct list_head *jobs, int (*fn) (struct kcopyd_job *))
394 while ((job = pop(jobs))) {
413 push(jobs, job);
430 * complete jobs can free some pages for pages jobs.
431 * Pages jobs when successful will jump onto the io jobs
432 * list. io jobs call wake when they complete and it all
443 * jobs.
517 * Create some little jobs that will do the move between
690 /* Wait for completion of all jobs submitted by this client. */