Lines Matching refs:t

60 static inline sector_t *get_node(struct dm_table *t,  in get_node()  argument
63 return t->index[l] + (n * KEYS_PER_NODE); in get_node()
70 static sector_t high(struct dm_table *t, unsigned int l, unsigned int n) in high() argument
72 for (; l < t->depth - 1; l++) in high()
75 if (n >= t->counts[l]) in high()
78 return get_node(t, l, n)[KEYS_PER_NODE - 1]; in high()
85 static int setup_btree_index(unsigned int l, struct dm_table *t) in setup_btree_index() argument
90 for (n = 0U; n < t->counts[l]; n++) { in setup_btree_index()
91 node = get_node(t, l, n); in setup_btree_index()
94 node[k] = high(t, l + 1, get_child(n, k)); in setup_btree_index()
104 static int alloc_targets(struct dm_table *t, unsigned int num) in alloc_targets() argument
120 kvfree(t->highs); in alloc_targets()
122 t->num_allocated = num; in alloc_targets()
123 t->highs = n_highs; in alloc_targets()
124 t->targets = n_targets; in alloc_targets()
132 struct dm_table *t; in dm_table_create() local
137 t = kzalloc(sizeof(*t), GFP_KERNEL); in dm_table_create()
139 if (!t) in dm_table_create()
142 INIT_LIST_HEAD(&t->devices); in dm_table_create()
143 init_rwsem(&t->devices_lock); in dm_table_create()
151 kfree(t); in dm_table_create()
155 if (alloc_targets(t, num_targets)) { in dm_table_create()
156 kfree(t); in dm_table_create()
160 t->type = DM_TYPE_NONE; in dm_table_create()
161 t->mode = mode; in dm_table_create()
162 t->md = md; in dm_table_create()
163 *result = t; in dm_table_create()
181 static void dm_table_destroy_crypto_profile(struct dm_table *t);
183 void dm_table_destroy(struct dm_table *t) in dm_table_destroy() argument
185 if (!t) in dm_table_destroy()
189 if (t->depth >= 2) in dm_table_destroy()
190 kvfree(t->index[t->depth - 2]); in dm_table_destroy()
193 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_destroy()
194 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_destroy()
202 kvfree(t->highs); in dm_table_destroy()
205 free_devices(&t->devices, t->md); in dm_table_destroy()
207 dm_free_md_mempools(t->mempools); in dm_table_destroy()
209 dm_table_destroy_crypto_profile(t); in dm_table_destroy()
211 kfree(t); in dm_table_destroy()
347 struct dm_table *t = ti->table; in dm_get_device() local
349 BUG_ON(!t); in dm_get_device()
365 if (dev == disk_devt(t->md->disk)) in dm_get_device()
368 down_write(&t->devices_lock); in dm_get_device()
370 dd = find_device(&t->devices, dev); in dm_get_device()
378 r = dm_get_table_device(t->md, dev, mode, &dd->dm_dev); in dm_get_device()
385 list_add(&dd->list, &t->devices); in dm_get_device()
389 r = upgrade_mode(dd, mode, t->md); in dm_get_device()
395 up_write(&t->devices_lock); in dm_get_device()
400 up_write(&t->devices_lock); in dm_get_device()
437 struct dm_table *t = ti->table; in dm_put_device() local
438 struct list_head *devices = &t->devices; in dm_put_device()
441 down_write(&t->devices_lock); in dm_put_device()
451 dm_device_name(t->md), d->name); in dm_put_device()
455 dm_put_table_device(t->md, d); in dm_put_device()
461 up_write(&t->devices_lock); in dm_put_device()
468 static int adjoin(struct dm_table *t, struct dm_target *ti) in adjoin() argument
472 if (!t->num_targets) in adjoin()
475 prev = &t->targets[t->num_targets - 1]; in adjoin()
582 static int validate_hardware_logical_block_alignment(struct dm_table *t, in validate_hardware_logical_block_alignment() argument
610 for (i = 0; i < t->num_targets; i++) { in validate_hardware_logical_block_alignment()
611 ti = dm_table_get_target(t, i); in validate_hardware_logical_block_alignment()
639 dm_device_name(t->md), i, in validate_hardware_logical_block_alignment()
649 int dm_table_add_target(struct dm_table *t, const char *type, in dm_table_add_target() argument
656 if (t->singleton) { in dm_table_add_target()
658 dm_device_name(t->md), t->targets->type->name); in dm_table_add_target()
662 BUG_ON(t->num_targets >= t->num_allocated); in dm_table_add_target()
664 ti = t->targets + t->num_targets; in dm_table_add_target()
668 DMERR("%s: zero-length target", dm_device_name(t->md)); in dm_table_add_target()
674 DMERR("%s: %s: unknown target type", dm_device_name(t->md), type); in dm_table_add_target()
679 if (t->num_targets) { in dm_table_add_target()
683 t->singleton = true; in dm_table_add_target()
687 !(t->mode & BLK_OPEN_WRITE)) { in dm_table_add_target()
692 if (t->immutable_target_type) { in dm_table_add_target()
693 if (t->immutable_target_type != ti->type) { in dm_table_add_target()
698 if (t->num_targets) { in dm_table_add_target()
702 t->immutable_target_type = ti->type; in dm_table_add_target()
706 t->integrity_added = 1; in dm_table_add_target()
708 ti->table = t; in dm_table_add_target()
716 if (!adjoin(t, ti)) { in dm_table_add_target()
732 t->highs[t->num_targets++] = ti->begin + ti->len - 1; in dm_table_add_target()
736 dm_device_name(t->md), type); in dm_table_add_target()
744 DMERR("%s: %s: %s (%pe)", dm_device_name(t->md), type, ti->error, ERR_PTR(r)); in dm_table_add_target()
818 void dm_table_set_type(struct dm_table *t, enum dm_queue_mode type) in dm_table_set_type() argument
820 t->type = type; in dm_table_set_type()
842 static bool dm_table_supports_dax(struct dm_table *t, in dm_table_supports_dax() argument
846 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_supports_dax()
847 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_supports_dax()
873 static int dm_table_determine_type(struct dm_table *t) in dm_table_determine_type() argument
877 struct list_head *devices = dm_table_get_devices(t); in dm_table_determine_type()
878 enum dm_queue_mode live_md_type = dm_get_md_type(t->md); in dm_table_determine_type()
880 if (t->type != DM_TYPE_NONE) { in dm_table_determine_type()
882 if (t->type == DM_TYPE_BIO_BASED) { in dm_table_determine_type()
886 BUG_ON(t->type == DM_TYPE_DAX_BIO_BASED); in dm_table_determine_type()
890 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_determine_type()
891 ti = dm_table_get_target(t, i); in dm_table_determine_type()
920 t->type = DM_TYPE_BIO_BASED; in dm_table_determine_type()
921 if (dm_table_supports_dax(t, device_not_dax_capable) || in dm_table_determine_type()
923 t->type = DM_TYPE_DAX_BIO_BASED; in dm_table_determine_type()
930 t->type = DM_TYPE_REQUEST_BASED; in dm_table_determine_type()
939 if (t->num_targets > 1) { in dm_table_determine_type()
946 struct dm_table *live_table = dm_get_live_table(t->md, &srcu_idx); in dm_table_determine_type()
950 t->type = live_table->type; in dm_table_determine_type()
951 dm_put_live_table(t->md, srcu_idx); in dm_table_determine_type()
955 ti = dm_table_get_immutable_target(t); in dm_table_determine_type()
974 enum dm_queue_mode dm_table_get_type(struct dm_table *t) in dm_table_get_type() argument
976 return t->type; in dm_table_get_type()
979 struct target_type *dm_table_get_immutable_target_type(struct dm_table *t) in dm_table_get_immutable_target_type() argument
981 return t->immutable_target_type; in dm_table_get_immutable_target_type()
984 struct dm_target *dm_table_get_immutable_target(struct dm_table *t) in dm_table_get_immutable_target() argument
987 if (t->num_targets > 1 || in dm_table_get_immutable_target()
988 !dm_target_is_immutable(t->targets[0].type)) in dm_table_get_immutable_target()
991 return t->targets; in dm_table_get_immutable_target()
994 struct dm_target *dm_table_get_wildcard_target(struct dm_table *t) in dm_table_get_wildcard_target() argument
996 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_get_wildcard_target()
997 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_get_wildcard_target()
1006 bool dm_table_bio_based(struct dm_table *t) in dm_table_bio_based() argument
1008 return __table_type_bio_based(dm_table_get_type(t)); in dm_table_bio_based()
1011 bool dm_table_request_based(struct dm_table *t) in dm_table_request_based() argument
1013 return __table_type_request_based(dm_table_get_type(t)); in dm_table_request_based()
1016 static bool dm_table_supports_poll(struct dm_table *t);
1018 static int dm_table_alloc_md_mempools(struct dm_table *t, struct mapped_device *md) in dm_table_alloc_md_mempools() argument
1020 enum dm_queue_mode type = dm_table_get_type(t); in dm_table_alloc_md_mempools()
1040 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_alloc_md_mempools()
1041 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_alloc_md_mempools()
1053 dm_table_supports_poll(t) ? BIOSET_PERCPU_CACHE : 0)) in dm_table_alloc_md_mempools()
1055 if (t->integrity_supported && in dm_table_alloc_md_mempools()
1061 if (t->integrity_supported && in dm_table_alloc_md_mempools()
1065 t->mempools = pools; in dm_table_alloc_md_mempools()
1073 static int setup_indexes(struct dm_table *t) in setup_indexes() argument
1080 for (i = t->depth - 2; i >= 0; i--) { in setup_indexes()
1081 t->counts[i] = dm_div_up(t->counts[i + 1], CHILDREN_PER_NODE); in setup_indexes()
1082 total += t->counts[i]; in setup_indexes()
1090 for (i = t->depth - 2; i >= 0; i--) { in setup_indexes()
1091 t->index[i] = indexes; in setup_indexes()
1092 indexes += (KEYS_PER_NODE * t->counts[i]); in setup_indexes()
1093 setup_btree_index(i, t); in setup_indexes()
1102 static int dm_table_build_index(struct dm_table *t) in dm_table_build_index() argument
1108 leaf_nodes = dm_div_up(t->num_targets, KEYS_PER_NODE); in dm_table_build_index()
1109 t->depth = 1 + int_log(leaf_nodes, CHILDREN_PER_NODE); in dm_table_build_index()
1112 t->counts[t->depth - 1] = leaf_nodes; in dm_table_build_index()
1113 t->index[t->depth - 1] = t->highs; in dm_table_build_index()
1115 if (t->depth >= 2) in dm_table_build_index()
1116 r = setup_indexes(t); in dm_table_build_index()
1130 static struct gendisk *dm_table_get_integrity_disk(struct dm_table *t) in dm_table_get_integrity_disk() argument
1132 struct list_head *devices = dm_table_get_devices(t); in dm_table_get_integrity_disk()
1136 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_get_integrity_disk()
1137 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_get_integrity_disk()
1158 dm_device_name(t->md), in dm_table_get_integrity_disk()
1174 static int dm_table_register_integrity(struct dm_table *t) in dm_table_register_integrity() argument
1176 struct mapped_device *md = t->md; in dm_table_register_integrity()
1180 if (t->integrity_added) in dm_table_register_integrity()
1183 template_disk = dm_table_get_integrity_disk(t); in dm_table_register_integrity()
1188 t->integrity_supported = true; in dm_table_register_integrity()
1204 dm_device_name(t->md), in dm_table_register_integrity()
1210 t->integrity_supported = true; in dm_table_register_integrity()
1239 struct dm_table *t; in dm_keyslot_evict() local
1242 t = dm_get_live_table(md, &srcu_idx); in dm_keyslot_evict()
1243 if (!t) in dm_keyslot_evict()
1246 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_keyslot_evict()
1247 struct dm_target *ti = dm_table_get_target(t, i); in dm_keyslot_evict()
1284 static void dm_table_destroy_crypto_profile(struct dm_table *t) in dm_table_destroy_crypto_profile() argument
1286 dm_destroy_crypto_profile(t->crypto_profile); in dm_table_destroy_crypto_profile()
1287 t->crypto_profile = NULL; in dm_table_destroy_crypto_profile()
1299 static int dm_table_construct_crypto_profile(struct dm_table *t) in dm_table_construct_crypto_profile() argument
1309 dmcp->md = t->md; in dm_table_construct_crypto_profile()
1318 for (i = 0; i < t->num_targets; i++) { in dm_table_construct_crypto_profile()
1319 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_construct_crypto_profile()
1332 if (t->md->queue && in dm_table_construct_crypto_profile()
1334 t->md->queue->crypto_profile)) { in dm_table_construct_crypto_profile()
1361 t->crypto_profile = profile; in dm_table_construct_crypto_profile()
1367 struct dm_table *t) in dm_update_crypto_profile() argument
1369 if (!t->crypto_profile) in dm_update_crypto_profile()
1374 blk_crypto_register(t->crypto_profile, q); in dm_update_crypto_profile()
1377 t->crypto_profile); in dm_update_crypto_profile()
1378 dm_destroy_crypto_profile(t->crypto_profile); in dm_update_crypto_profile()
1380 t->crypto_profile = NULL; in dm_update_crypto_profile()
1385 static int dm_table_construct_crypto_profile(struct dm_table *t) in dm_table_construct_crypto_profile() argument
1394 static void dm_table_destroy_crypto_profile(struct dm_table *t) in dm_table_destroy_crypto_profile() argument
1399 struct dm_table *t) in dm_update_crypto_profile() argument
1409 int dm_table_complete(struct dm_table *t) in dm_table_complete() argument
1413 r = dm_table_determine_type(t); in dm_table_complete()
1419 r = dm_table_build_index(t); in dm_table_complete()
1425 r = dm_table_register_integrity(t); in dm_table_complete()
1431 r = dm_table_construct_crypto_profile(t); in dm_table_complete()
1437 r = dm_table_alloc_md_mempools(t, t->md); in dm_table_complete()
1445 void dm_table_event_callback(struct dm_table *t, in dm_table_event_callback() argument
1449 t->event_fn = fn; in dm_table_event_callback()
1450 t->event_context = context; in dm_table_event_callback()
1454 void dm_table_event(struct dm_table *t) in dm_table_event() argument
1457 if (t->event_fn) in dm_table_event()
1458 t->event_fn(t->event_context); in dm_table_event()
1463 inline sector_t dm_table_get_size(struct dm_table *t) in dm_table_get_size() argument
1465 return t->num_targets ? (t->highs[t->num_targets - 1] + 1) : 0; in dm_table_get_size()
1475 struct dm_target *dm_table_find_target(struct dm_table *t, sector_t sector) in dm_table_find_target() argument
1480 if (unlikely(sector >= dm_table_get_size(t))) in dm_table_find_target()
1483 for (l = 0; l < t->depth; l++) { in dm_table_find_target()
1485 node = get_node(t, l, n); in dm_table_find_target()
1492 return &t->targets[(KEYS_PER_NODE * n) + k]; in dm_table_find_target()
1526 static bool dm_table_any_dev_attr(struct dm_table *t, in dm_table_any_dev_attr() argument
1529 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_any_dev_attr()
1530 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_any_dev_attr()
1550 static bool dm_table_supports_poll(struct dm_table *t) in dm_table_supports_poll() argument
1552 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_supports_poll()
1553 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_supports_poll()
1569 bool dm_table_has_no_data_devices(struct dm_table *t) in dm_table_has_no_data_devices() argument
1571 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_has_no_data_devices()
1572 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_has_no_data_devices()
1602 static bool dm_table_supports_zoned_model(struct dm_table *t, in dm_table_supports_zoned_model() argument
1605 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_supports_zoned_model()
1606 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_supports_zoned_model()
1637 static int validate_hardware_zoned_model(struct dm_table *t, in validate_hardware_zoned_model() argument
1644 if (!dm_table_supports_zoned_model(t, zoned_model)) { in validate_hardware_zoned_model()
1646 dm_device_name(t->md)); in validate_hardware_zoned_model()
1654 if (dm_table_any_dev_attr(t, device_not_matches_zone_sectors, &zone_sectors)) { in validate_hardware_zoned_model()
1656 dm_device_name(t->md)); in validate_hardware_zoned_model()
1666 int dm_calculate_queue_limits(struct dm_table *t, in dm_calculate_queue_limits() argument
1675 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_calculate_queue_limits()
1676 struct dm_target *ti = dm_table_get_target(t, i); in dm_calculate_queue_limits()
1722 dm_device_name(t->md), in dm_calculate_queue_limits()
1742 if (validate_hardware_zoned_model(t, zoned_model, zone_sectors)) in dm_calculate_queue_limits()
1745 return validate_hardware_logical_block_alignment(t, limits); in dm_calculate_queue_limits()
1753 static void dm_table_verify_integrity(struct dm_table *t) in dm_table_verify_integrity() argument
1757 if (t->integrity_added) in dm_table_verify_integrity()
1760 if (t->integrity_supported) { in dm_table_verify_integrity()
1765 template_disk = dm_table_get_integrity_disk(t); in dm_table_verify_integrity()
1767 blk_integrity_compare(dm_disk(t->md), template_disk) >= 0) in dm_table_verify_integrity()
1771 if (integrity_profile_exists(dm_disk(t->md))) { in dm_table_verify_integrity()
1773 dm_device_name(t->md)); in dm_table_verify_integrity()
1774 blk_integrity_unregister(dm_disk(t->md)); in dm_table_verify_integrity()
1787 static bool dm_table_supports_flush(struct dm_table *t, unsigned long flush) in dm_table_supports_flush() argument
1795 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_supports_flush()
1796 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_supports_flush()
1848 static bool dm_table_supports_write_zeroes(struct dm_table *t) in dm_table_supports_write_zeroes() argument
1850 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_supports_write_zeroes()
1851 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_supports_write_zeroes()
1870 static bool dm_table_supports_nowait(struct dm_table *t) in dm_table_supports_nowait() argument
1872 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_supports_nowait()
1873 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_supports_nowait()
1892 static bool dm_table_supports_discards(struct dm_table *t) in dm_table_supports_discards() argument
1894 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_supports_discards()
1895 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_supports_discards()
1921 static bool dm_table_supports_secure_erase(struct dm_table *t) in dm_table_supports_secure_erase() argument
1923 for (unsigned int i = 0; i < t->num_targets; i++) { in dm_table_supports_secure_erase()
1924 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_supports_secure_erase()
1944 int dm_table_set_restrictions(struct dm_table *t, struct request_queue *q, in dm_table_set_restrictions() argument
1955 if (dm_table_supports_nowait(t)) in dm_table_set_restrictions()
1960 if (!dm_table_supports_discards(t)) { in dm_table_set_restrictions()
1968 if (!dm_table_supports_secure_erase(t)) in dm_table_set_restrictions()
1971 if (dm_table_supports_flush(t, (1UL << QUEUE_FLAG_WC))) { in dm_table_set_restrictions()
1973 if (dm_table_supports_flush(t, (1UL << QUEUE_FLAG_FUA))) in dm_table_set_restrictions()
1978 if (dm_table_supports_dax(t, device_not_dax_capable)) { in dm_table_set_restrictions()
1980 if (dm_table_supports_dax(t, device_not_dax_synchronous_capable)) in dm_table_set_restrictions()
1981 set_dax_synchronous(t->md->dax_dev); in dm_table_set_restrictions()
1985 if (dm_table_any_dev_attr(t, device_dax_write_cache_enabled, NULL)) in dm_table_set_restrictions()
1986 dax_write_cache(t->md->dax_dev, true); in dm_table_set_restrictions()
1989 if (dm_table_any_dev_attr(t, device_is_rotational, NULL)) in dm_table_set_restrictions()
1994 if (!dm_table_supports_write_zeroes(t)) in dm_table_set_restrictions()
1997 dm_table_verify_integrity(t); in dm_table_set_restrictions()
2006 if (dm_table_any_dev_attr(t, device_requires_stable_pages, NULL)) in dm_table_set_restrictions()
2018 dm_table_any_dev_attr(t, device_is_not_random, NULL)) in dm_table_set_restrictions()
2026 r = dm_set_zones_restrictions(t, q); in dm_table_set_restrictions()
2033 dm_update_crypto_profile(q, t); in dm_table_set_restrictions()
2034 disk_update_readahead(t->md->disk); in dm_table_set_restrictions()
2043 if (__table_type_bio_based(t->type)) { in dm_table_set_restrictions()
2044 if (dm_table_supports_poll(t)) in dm_table_set_restrictions()
2053 struct list_head *dm_table_get_devices(struct dm_table *t) in dm_table_get_devices() argument
2055 return &t->devices; in dm_table_get_devices()
2058 blk_mode_t dm_table_get_mode(struct dm_table *t) in dm_table_get_mode() argument
2060 return t->mode; in dm_table_get_mode()
2070 static void suspend_targets(struct dm_table *t, enum suspend_mode mode) in suspend_targets() argument
2072 lockdep_assert_held(&t->md->suspend_lock); in suspend_targets()
2074 for (unsigned int i = 0; i < t->num_targets; i++) { in suspend_targets()
2075 struct dm_target *ti = dm_table_get_target(t, i); in suspend_targets()
2094 void dm_table_presuspend_targets(struct dm_table *t) in dm_table_presuspend_targets() argument
2096 if (!t) in dm_table_presuspend_targets()
2099 suspend_targets(t, PRESUSPEND); in dm_table_presuspend_targets()
2102 void dm_table_presuspend_undo_targets(struct dm_table *t) in dm_table_presuspend_undo_targets() argument
2104 if (!t) in dm_table_presuspend_undo_targets()
2107 suspend_targets(t, PRESUSPEND_UNDO); in dm_table_presuspend_undo_targets()
2110 void dm_table_postsuspend_targets(struct dm_table *t) in dm_table_postsuspend_targets() argument
2112 if (!t) in dm_table_postsuspend_targets()
2115 suspend_targets(t, POSTSUSPEND); in dm_table_postsuspend_targets()
2118 int dm_table_resume_targets(struct dm_table *t) in dm_table_resume_targets() argument
2123 lockdep_assert_held(&t->md->suspend_lock); in dm_table_resume_targets()
2125 for (i = 0; i < t->num_targets; i++) { in dm_table_resume_targets()
2126 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_resume_targets()
2134 dm_device_name(t->md), ti->type->name, r); in dm_table_resume_targets()
2139 for (i = 0; i < t->num_targets; i++) { in dm_table_resume_targets()
2140 struct dm_target *ti = dm_table_get_target(t, i); in dm_table_resume_targets()
2149 struct mapped_device *dm_table_get_md(struct dm_table *t) in dm_table_get_md() argument
2151 return t->md; in dm_table_get_md()
2155 const char *dm_table_device_name(struct dm_table *t) in dm_table_device_name() argument
2157 return dm_device_name(t->md); in dm_table_device_name()
2161 void dm_table_run_md_queue_async(struct dm_table *t) in dm_table_run_md_queue_async() argument
2163 if (!dm_table_request_based(t)) in dm_table_run_md_queue_async()
2166 if (t->md->queue) in dm_table_run_md_queue_async()
2167 blk_mq_run_hw_queues(t->md->queue, true); in dm_table_run_md_queue_async()