Home
last modified time | relevance | path

Searched refs:thread_config (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/md/dm-vdo/
H A Dvdo.c164 static void uninitialize_thread_config(struct thread_config *config) in uninitialize_thread_config()
170 memset(config, 0, sizeof(struct thread_config)); in uninitialize_thread_config()
173 static void assign_thread_ids(struct thread_config *config, in assign_thread_ids()
194 struct thread_config *config) in initialize_thread_config()
337 static void get_thread_name(const struct thread_config *thread_config, in get_thread_name() argument
340 if (thread_id == thread_config->journal_thread) { in get_thread_name()
341 if (thread_config->packer_thread == thread_id) { in get_thread_name()
353 } else if (thread_id == thread_config->admin_thread) { in get_thread_name()
357 } else if (thread_id == thread_config->packer_thread) { in get_thread_name()
360 } else if (thread_id == thread_config->dedupe_thread) { in get_thread_name()
[all …]
H A Dlogical-zone.c62 if (zone_number < vdo->thread_config.logical_zone_count - 1) in initialize_zone()
69 zone->thread_id = vdo->thread_config.logical_threads[zone_number]; in initialize_zone()
74 allocation_zone_number = zone->thread_id % vdo->thread_config.physical_zone_count; in initialize_zone()
92 zone_count_t zone_count = vdo->thread_config.logical_zone_count; in vdo_make_logical_zones()
113 vdo->thread_config.admin_thread, zones, NULL, in vdo_make_logical_zones()
H A Dflush.c143 vdo->flusher->thread_id = vdo->thread_config.packer_thread; in vdo_make_flusher()
380 completion->vdo->thread_config.packer_thread, NULL); in launch_flush()
494 zone_count_t bio_threads = flusher->vdo->thread_config.bio_thread_count; in select_bio_queue()
498 return vdo->thread_config.bio_threads[0]; in select_bio_queue()
508 return vdo->thread_config.bio_threads[flusher->bio_queue_rotor]; in select_bio_queue()
H A Dcompletion.c117 if (VDO_ASSERT(thread_id < vdo->thread_config.thread_count, in vdo_enqueue_completion()
120 vdo->thread_config.thread_count) != VDO_SUCCESS) in vdo_enqueue_completion()
H A Dvdo.h127 struct thread_config { struct
187 struct thread_config thread_config; member
H A Dphysical-zone.c343 zone->thread_id = vdo->thread_config.physical_threads[zone_number]; in initialize_zone()
345 zone->next = &zones->zones[(zone_number + 1) % vdo->thread_config.physical_zone_count]; in initialize_zone()
366 zone_count_t zone_count = vdo->thread_config.physical_zone_count; in vdo_make_physical_zones()
H A Dio-submitter.c421 result = vdo_make_thread(vdo, vdo->thread_config.bio_threads[i], in vdo_make_io_submitter()
435 bio_queue_data->queue = vdo->threads[vdo->thread_config.bio_threads[i]].queue; in vdo_make_io_submitter()
H A Drepair.c207 const struct thread_config *thread_config = &completion->vdo->thread_config; in prepare_repair_completion() local
212 thread_config->logical_threads[0] : in prepare_repair_completion()
213 thread_config->admin_thread); in prepare_repair_completion()
1686 continue_vio_after_io(vio, finish_journal_load, vdo->thread_config.admin_thread); in read_journal_endio()
H A Dvio.h58 return vio->completion.vdo->thread_config.bio_threads[vio->bio_zone]; in get_vio_bio_zone_thread_id()
H A Ddump.c72 for (id = 0; id < vdo->thread_config.thread_count; id++) in do_dump()
H A Dslab-depot.c4078 .thread_id = vdo->thread_config.physical_threads[zone], in initialize_block_allocator()
4161 const struct thread_config *thread_config = &depot->vdo->thread_config; in allocate_components() local
4164 thread_config->journal_thread, depot, in allocate_components()
4201 if (thread_config->physical_zone_count > slab_count) { in allocate_components()
4204 thread_config->physical_zone_count, in allocate_components()
4266 vdo->thread_config.physical_zone_count, in vdo_decode_slab_depot()
4273 depot->zone_count = vdo->thread_config.physical_zone_count; in vdo_decode_slab_depot()
4558 vdo->thread_config.admin_thread); in write_summary_endio()
4625 vdo->thread_config.admin_thread); in load_summary_endio()
H A Ddm-vdo-target.c1156 return vdo->thread_config.packer_thread; in get_thread_id_for_phase()
1160 return vdo->thread_config.cpu_thread; in get_thread_id_for_phase()
1165 return vdo->thread_config.journal_thread; in get_thread_id_for_phase()
1168 return vdo->thread_config.admin_thread; in get_thread_id_for_phase()
2289 vdo->thread_config.admin_thread)) in handle_load_error()
H A Ddedupe.c2206 result = vdo_make_thread(vdo, vdo->thread_config.dedupe_thread, &uds_queue_type, in initialize_index()
2216 vdo->thread_config.dedupe_thread); in initialize_index()
2362 zone->thread_id = vdo->thread_config.hash_zone_threads[zone_number]; in initialize_zone()
2416 zone_count_t zone_count = vdo->thread_config.hash_zone_count; in vdo_make_hash_zones()
2444 vdo->thread_config.admin_thread, zones, NULL, in vdo_make_hash_zones()
H A Drecovery-journal.c593 struct thread_config *config = &vdo->thread_config; in initialize_lock_counter()
725 journal->thread_id = vdo->thread_config.journal_thread; in vdo_decode_recovery_journal()
H A Ddata-vio.c862 process_release_callback, vdo->thread_config.cpu_thread, in make_data_vio_pool()
1001 VDO_ASSERT_LOG_ONLY((vdo_get_callback_thread_id() == vdo->thread_config.cpu_thread), in assert_on_vdo_cpu_thread()
1923 (vdo_get_callback_thread_id() == vdo->thread_config.bio_ack_thread)), in acknowledge_write_callback()
H A Dpacker.c153 packer->thread_id = vdo->thread_config.packer_thread; in vdo_make_packer()
H A Dblock-map.c2758 zone->thread_id = vdo->thread_config.logical_threads[zone_number]; in initialize_block_map_zone()
2904 vdo->thread_config.logical_zone_count, in vdo_decode_block_map()
2924 map->zone_count = vdo->thread_config.logical_zone_count; in vdo_decode_block_map()