Lines Matching defs:wait
165 wait_queue_entry_t wait;
1505 DEFINE_WAIT(wait);
1506 prepare_to_wait(&mc.waitq, &wait, TASK_INTERRUPTIBLE);
1510 finish_wait(&mc.waitq, &wait);
1909 wait_queue_entry_t wait;
1912 static int memcg_oom_wake_function(wait_queue_entry_t *wait,
1919 oom_wait_info = container_of(wait, struct oom_wait_info, wait);
1925 return autoremove_wake_function(wait, mode, sync, arg);
2009 * @handle: actually kill/wait or just clean up the OOM state
2038 owait.wait.flags = 0;
2039 owait.wait.func = memcg_oom_wake_function;
2040 owait.wait.private = current;
2041 INIT_LIST_HEAD(&owait.wait.entry);
2043 prepare_to_wait(&memcg_oom_waitq, &owait.wait, TASK_KILLABLE);
2053 finish_wait(&memcg_oom_waitq, &owait.wait);
2059 finish_wait(&memcg_oom_waitq, &owait.wait);
2798 * better to wait until the end of task_move if something is going on.
4838 remove_wait_queue(event->wqh, &event->wait);
4855 static int memcg_event_wake(wait_queue_entry_t *wait, unsigned mode,
4859 container_of(wait, struct mem_cgroup_event, wait);
4895 add_wait_queue(wqh, &event->wait);
4943 init_waitqueue_func_entry(&event->wait, memcg_event_wake);
6284 * while we're moving its pages to another memcg. Then wait
6941 * let's not wait for it. The page already received a