Lines Matching defs:wait
168 wait_queue_entry_t wait;
1505 DEFINE_WAIT(wait);
1506 prepare_to_wait(&mc.waitq, &wait, TASK_INTERRUPTIBLE);
1510 finish_wait(&mc.waitq, &wait);
1918 wait_queue_entry_t wait;
1921 static int memcg_oom_wake_function(wait_queue_entry_t *wait,
1928 oom_wait_info = container_of(wait, struct oom_wait_info, wait);
1934 return autoremove_wake_function(wait, mode, sync, arg);
2010 * @handle: actually kill/wait or just clean up the OOM state
2039 owait.wait.flags = 0;
2040 owait.wait.func = memcg_oom_wake_function;
2041 owait.wait.private = current;
2042 INIT_LIST_HEAD(&owait.wait.entry);
2044 prepare_to_wait(&memcg_oom_waitq, &owait.wait, TASK_KILLABLE);
2054 finish_wait(&memcg_oom_waitq, &owait.wait);
2749 * better to wait until the end of task_move if something is going on.
4819 remove_wait_queue(event->wqh, &event->wait);
4836 static int memcg_event_wake(wait_queue_entry_t *wait, unsigned mode,
4840 container_of(wait, struct mem_cgroup_event, wait);
4876 add_wait_queue(wqh, &event->wait);
4924 init_waitqueue_func_entry(&event->wait, memcg_event_wake);
6405 * while we're moving its pages to another memcg. Then wait
7159 * let's not wait for it. The page already received a