Lines Matching refs:thread
132 struct vdo_thread *thread = vdo_get_work_queue_owner(vdo_get_current_work_queue()); in start_vdo_request_queue() local
134 vdo_register_allocating_thread(&thread->allocating_thread, in start_vdo_request_queue()
135 &thread->vdo->allocations_allowed); in start_vdo_request_queue()
412 struct vdo_thread *thread = &vdo->threads[thread_id]; in vdo_make_thread() local
418 if (thread->queue != NULL) { in vdo_make_thread()
419 return VDO_ASSERT(vdo_work_queue_type_is(thread->queue, type), in vdo_make_thread()
424 thread->vdo = vdo; in vdo_make_thread()
425 thread->thread_id = thread_id; in vdo_make_thread()
427 return vdo_make_work_queue(vdo->thread_name_prefix, queue_name, thread, in vdo_make_thread()
428 type, queue_count, contexts, &thread->queue); in vdo_make_thread()
639 static void free_listeners(struct vdo_thread *thread) in free_listeners() argument
643 for (listener = vdo_forget(thread->listeners); listener != NULL; listener = next) { in free_listeners()
988 struct vdo_thread *thread = &vdo->threads[thread_id]; in vdo_register_read_only_listener() local
1005 .next = thread->listeners, in vdo_register_read_only_listener()
1008 thread->listeners = read_only_listener; in vdo_register_read_only_listener()
1143 struct vdo_thread *thread = &vdo->threads[thread_id]; in make_thread_read_only() local
1145 thread->is_read_only = true; in make_thread_read_only()
1146 listener = thread->listeners; in make_thread_read_only()
1244 struct vdo_thread *thread; in vdo_enter_read_only_mode() local
1247 thread = &vdo->threads[thread_id]; in vdo_enter_read_only_mode()
1248 if (thread->is_read_only) { in vdo_enter_read_only_mode()
1254 thread->is_read_only = true; in vdo_enter_read_only_mode()
1600 struct vdo_thread *thread; in vdo_get_callback_thread_id() local
1606 thread = vdo_get_work_queue_owner(queue); in vdo_get_callback_thread_id()
1607 thread_id = thread->thread_id; in vdo_get_callback_thread_id()
1610 BUG_ON(thread_id >= thread->vdo->thread_config.thread_count); in vdo_get_callback_thread_id()
1611 BUG_ON(thread != &thread->vdo->threads[thread_id]); in vdo_get_callback_thread_id()