Lines Matching full:wait
76 struct io_clock_wait *wait = container_of(timer, in io_clock_wait_fn() local
79 wait->expired = 1; in io_clock_wait_fn()
80 wake_up_process(wait->task); in io_clock_wait_fn()
85 struct io_clock_wait *wait = container_of(timer, in io_clock_cpu_timeout() local
88 wait->expired = 1; in io_clock_cpu_timeout()
89 wake_up_process(wait->task); in io_clock_cpu_timeout()
94 struct io_clock_wait wait = { in bch2_io_clock_schedule_timeout() local
101 bch2_io_timer_add(clock, &wait.io_timer); in bch2_io_clock_schedule_timeout()
103 bch2_io_timer_del(clock, &wait.io_timer); in bch2_io_clock_schedule_timeout()
110 struct io_clock_wait wait = { in bch2_kthread_io_clock_wait() local
117 bch2_io_timer_add(clock, &wait.io_timer); in bch2_kthread_io_clock_wait()
119 timer_setup_on_stack(&wait.cpu_timer, io_clock_cpu_timeout, 0); in bch2_kthread_io_clock_wait()
122 mod_timer(&wait.cpu_timer, cpu_timeout + jiffies); in bch2_kthread_io_clock_wait()
129 if (wait.expired) in bch2_kthread_io_clock_wait()
137 del_timer_sync(&wait.cpu_timer); in bch2_kthread_io_clock_wait()
138 destroy_timer_on_stack(&wait.cpu_timer); in bch2_kthread_io_clock_wait()
139 bch2_io_timer_del(clock, &wait.io_timer); in bch2_kthread_io_clock_wait()