Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 10 of 10) sorted by relevance

/mm/
Dfilemap.c1054 static int wake_page_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg) in wake_page_function() argument
1059 = container_of(wait, struct wait_page_queue, wait); in wake_page_function()
1068 flags = wait->flags; in wake_page_function()
1088 smp_store_release(&wait->flags, flags | WQ_FLAG_WOKEN); in wake_page_function()
1089 wake_up_state(wait->private, mode); in wake_page_function()
1101 list_del_init_careful(&wait->entry); in wake_page_function()
1186 struct wait_queue_entry *wait) in trylock_page_bit_common() argument
1188 if (wait->flags & WQ_FLAG_EXCLUSIVE) { in trylock_page_bit_common()
1194 wait->flags |= WQ_FLAG_WOKEN | WQ_FLAG_DONE; in trylock_page_bit_common()
1206 wait_queue_entry_t *wait = &wait_page.wait; in wait_on_page_bit_common() local
[all …]
Dmempool.c189 init_waitqueue_head(&pool->wait); in mempool_init_node()
379 wait_queue_entry_t wait; in mempool_alloc() local
428 init_wait(&wait); in mempool_alloc()
429 prepare_to_wait(&pool->wait, &wait, TASK_UNINTERRUPTIBLE); in mempool_alloc()
439 finish_wait(&pool->wait, &wait); in mempool_alloc()
497 wake_up(&pool->wait); in mempool_free()
Dkhugepaged.c798 DEFINE_WAIT(wait); in khugepaged_alloc_sleep()
800 add_wait_queue(&khugepaged_wait, &wait); in khugepaged_alloc_sleep()
803 remove_wait_queue(&khugepaged_wait, &wait); in khugepaged_alloc_sleep()
864 static bool khugepaged_prealloc_page(struct page **hpage, bool *wait) in khugepaged_prealloc_page() argument
867 if (!*wait) in khugepaged_prealloc_page()
870 *wait = false; in khugepaged_prealloc_page()
914 static struct page *khugepaged_alloc_hugepage(bool *wait) in khugepaged_alloc_hugepage() argument
922 if (!*wait) in khugepaged_alloc_hugepage()
925 *wait = false; in khugepaged_alloc_hugepage()
934 static bool khugepaged_prealloc_page(struct page **hpage, bool *wait) in khugepaged_prealloc_page() argument
[all …]
Dhighmem.c238 DECLARE_WAITQUEUE(wait, current); in map_new_virtual()
243 add_wait_queue(pkmap_map_wait, &wait); in map_new_virtual()
246 remove_wait_queue(pkmap_map_wait, &wait); in map_new_virtual()
Dbacking-dev.c971 DEFINE_WAIT(wait); in congestion_wait()
974 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in congestion_wait()
976 finish_wait(wqh, &wait); in congestion_wait()
1002 DEFINE_WAIT(wait); in wait_iff_congested()
1021 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in wait_iff_congested()
1023 finish_wait(wqh, &wait); in wait_iff_congested()
Dmemcontrol.c166 wait_queue_entry_t wait; member
1512 DEFINE_WAIT(wait); in mem_cgroup_wait_acct_move()
1513 prepare_to_wait(&mc.waitq, &wait, TASK_INTERRUPTIBLE); in mem_cgroup_wait_acct_move()
1517 finish_wait(&mc.waitq, &wait); in mem_cgroup_wait_acct_move()
1916 wait_queue_entry_t wait; member
1919 static int memcg_oom_wake_function(wait_queue_entry_t *wait, in memcg_oom_wake_function() argument
1926 oom_wait_info = container_of(wait, struct oom_wait_info, wait); in memcg_oom_wake_function()
1932 return autoremove_wake_function(wait, mode, sync, arg); in memcg_oom_wake_function()
2045 owait.wait.flags = 0; in mem_cgroup_oom_synchronize()
2046 owait.wait.func = memcg_oom_wake_function; in mem_cgroup_oom_synchronize()
[all …]
Dvmscan.c3880 DEFINE_WAIT(wait); in kswapd_try_to_sleep()
3885 prepare_to_wait(&pgdat->kswapd_wait, &wait, TASK_INTERRUPTIBLE); in kswapd_try_to_sleep()
3925 finish_wait(&pgdat->kswapd_wait, &wait); in kswapd_try_to_sleep()
3926 prepare_to_wait(&pgdat->kswapd_wait, &wait, TASK_INTERRUPTIBLE); in kswapd_try_to_sleep()
3957 finish_wait(&pgdat->kswapd_wait, &wait); in kswapd_try_to_sleep()
Dshmem.c2058 static int synchronous_wake_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) in synchronous_wake_function() argument
2060 int ret = default_wake_function(wait, mode, sync, key); in synchronous_wake_function()
2061 list_del_init(&wait->entry); in synchronous_wake_function()
Dswapfile.c2781 static __poll_t swaps_poll(struct file *file, poll_table *wait) in swaps_poll() argument
2785 poll_wait(file, &proc_poll_wait, wait); in swaps_poll()
DKconfig851 since the page fault handler will not wait for other threads memory