Home
last modified time | relevance | path

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

/mm/
Dmempool.c200 init_waitqueue_head(&pool->wait); in mempool_create_node()
315 wait_queue_t wait; in mempool_alloc() local
364 init_wait(&wait); in mempool_alloc()
365 prepare_to_wait(&pool->wait, &wait, TASK_UNINTERRUPTIBLE); in mempool_alloc()
375 finish_wait(&pool->wait, &wait); in mempool_alloc()
433 wake_up(&pool->wait); in mempool_free()
Dkhugepaged.c667 DEFINE_WAIT(wait); in khugepaged_alloc_sleep()
669 add_wait_queue(&khugepaged_wait, &wait); in khugepaged_alloc_sleep()
672 remove_wait_queue(&khugepaged_wait, &wait); in khugepaged_alloc_sleep()
733 static bool khugepaged_prealloc_page(struct page **hpage, bool *wait) in khugepaged_prealloc_page() argument
736 if (!*wait) in khugepaged_prealloc_page()
739 *wait = false; in khugepaged_prealloc_page()
783 static struct page *khugepaged_alloc_hugepage(bool *wait) in khugepaged_alloc_hugepage() argument
791 if (!*wait) in khugepaged_alloc_hugepage()
794 *wait = false; in khugepaged_alloc_hugepage()
803 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.c959 DEFINE_WAIT(wait); in congestion_wait()
962 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in congestion_wait()
964 finish_wait(wqh, &wait); in congestion_wait()
995 DEFINE_WAIT(wait); in wait_iff_congested()
1016 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in wait_iff_congested()
1018 finish_wait(wqh, &wait); in wait_iff_congested()
Dfilemap.c799 DEFINE_WAIT_BIT(wait, &page->flags, bit_nr); in wait_on_page_bit()
802 __wait_on_bit(page_waitqueue(page), &wait, bit_wait_io, in wait_on_page_bit()
809 DEFINE_WAIT_BIT(wait, &page->flags, bit_nr); in wait_on_page_bit_killable()
814 return __wait_on_bit(page_waitqueue(page), &wait, in wait_on_page_bit_killable()
821 DEFINE_WAIT_BIT(wait, &page->flags, bit_nr); in wait_on_page_bit_killable_timeout()
823 wait.key.timeout = jiffies + timeout; in wait_on_page_bit_killable_timeout()
826 return __wait_on_bit(page_waitqueue(page), &wait, in wait_on_page_bit_killable_timeout()
932 DEFINE_WAIT_BIT(wait, &page_head->flags, PG_locked); in __lock_page()
934 __wait_on_bit_lock(page_waitqueue(page_head), &wait, bit_wait_io, in __lock_page()
942 DEFINE_WAIT_BIT(wait, &page_head->flags, PG_locked); in __lock_page_killable()
[all …]
Dmemcontrol.c188 wait_queue_t wait; member
1131 DEFINE_WAIT(wait); in mem_cgroup_wait_acct_move()
1132 prepare_to_wait(&mc.waitq, &wait, TASK_INTERRUPTIBLE); in mem_cgroup_wait_acct_move()
1136 finish_wait(&mc.waitq, &wait); in mem_cgroup_wait_acct_move()
1490 wait_queue_t wait; member
1493 static int memcg_oom_wake_function(wait_queue_t *wait, in memcg_oom_wake_function() argument
1500 oom_wait_info = container_of(wait, struct oom_wait_info, wait); in memcg_oom_wake_function()
1506 return autoremove_wake_function(wait, mode, sync, arg); in memcg_oom_wake_function()
1578 owait.wait.flags = 0; in mem_cgroup_oom_synchronize()
1579 owait.wait.func = memcg_oom_wake_function; in mem_cgroup_oom_synchronize()
[all …]
Dvmscan.c3350 DEFINE_WAIT(wait); in kswapd_try_to_sleep()
3355 prepare_to_wait(&pgdat->kswapd_wait, &wait, TASK_INTERRUPTIBLE); in kswapd_try_to_sleep()
3385 finish_wait(&pgdat->kswapd_wait, &wait); in kswapd_try_to_sleep()
3386 prepare_to_wait(&pgdat->kswapd_wait, &wait, TASK_INTERRUPTIBLE); in kswapd_try_to_sleep()
3417 finish_wait(&pgdat->kswapd_wait, &wait); in kswapd_try_to_sleep()
Dpage-writeback.c2362 int write_one_page(struct page *page, int wait) in write_one_page() argument
2373 if (wait) in write_one_page()
2379 if (ret == 0 && wait) { in write_one_page()
Dshmem.c1880 static int synchronous_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key) in synchronous_wake_function() argument
1882 int ret = default_wake_function(wait, mode, sync, key); in synchronous_wake_function()
1883 list_del_init(&wait->task_list); in synchronous_wake_function()
Dswapfile.c2013 static unsigned swaps_poll(struct file *file, poll_table *wait) in swaps_poll() argument
2017 poll_wait(file, &proc_poll_wait, wait); in swaps_poll()