Lines Matching refs:wait
62 struct io_clock_wait *wait = container_of(timer,
65 wait->expired = 1;
66 wake_up_process(wait->task);
71 struct io_clock_wait *wait = container_of(timer,
74 wait->expired = 1;
75 wake_up_process(wait->task);
80 struct io_clock_wait wait;
83 wait.io_timer.expire = until;
84 wait.io_timer.fn = io_clock_wait_fn;
85 wait.task = current;
86 wait.expired = 0;
87 bch2_io_timer_add(clock, &wait.io_timer);
91 bch2_io_timer_del(clock, &wait.io_timer);
99 struct io_clock_wait wait;
101 wait.io_timer.expire = io_until;
102 wait.io_timer.fn = io_clock_wait_fn;
103 wait.task = current;
104 wait.expired = 0;
105 bch2_io_timer_add(clock, &wait.io_timer);
107 timer_setup_on_stack(&wait.cpu_timer, io_clock_cpu_timeout, 0);
110 mod_timer(&wait.cpu_timer, cpu_timeout + jiffies);
117 if (wait.expired)
125 del_timer_sync(&wait.cpu_timer);
126 destroy_timer_on_stack(&wait.cpu_timer);
127 bch2_io_timer_del(clock, &wait.io_timer);