/linux-6.6.21/drivers/s390/block/ |
D | dasd_genhd.c | 51 block->tag_set.ops = &dasd_mq_ops; in dasd_gendisk_alloc() 52 block->tag_set.cmd_size = sizeof(struct dasd_ccw_req); in dasd_gendisk_alloc() 53 block->tag_set.nr_hw_queues = nr_hw_queues; in dasd_gendisk_alloc() 54 block->tag_set.queue_depth = queue_depth; in dasd_gendisk_alloc() 55 block->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; in dasd_gendisk_alloc() 56 block->tag_set.numa_node = NUMA_NO_NODE; in dasd_gendisk_alloc() 57 rc = blk_mq_alloc_tag_set(&block->tag_set); in dasd_gendisk_alloc() 61 gdp = blk_mq_alloc_disk(&block->tag_set, block); in dasd_gendisk_alloc() 63 blk_mq_free_tag_set(&block->tag_set); in dasd_gendisk_alloc() 121 blk_mq_free_tag_set(&block->tag_set); in dasd_gendisk_free()
|
D | scm_blk.c | 454 bdev->tag_set.ops = &scm_mq_ops; in scm_blk_dev_setup() 455 bdev->tag_set.cmd_size = sizeof(blk_status_t); in scm_blk_dev_setup() 456 bdev->tag_set.nr_hw_queues = nr_requests; in scm_blk_dev_setup() 457 bdev->tag_set.queue_depth = nr_requests_per_io * nr_requests; in scm_blk_dev_setup() 458 bdev->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; in scm_blk_dev_setup() 459 bdev->tag_set.numa_node = NUMA_NO_NODE; in scm_blk_dev_setup() 461 ret = blk_mq_alloc_tag_set(&bdev->tag_set); in scm_blk_dev_setup() 465 bdev->gendisk = blk_mq_alloc_disk(&bdev->tag_set, scmdev); in scm_blk_dev_setup() 507 blk_mq_free_tag_set(&bdev->tag_set); in scm_blk_dev_setup() 517 blk_mq_free_tag_set(&bdev->tag_set); in scm_blk_dev_cleanup()
|
/linux-6.6.21/drivers/md/ |
D | dm-rq.c | 541 md->tag_set = kzalloc_node(sizeof(struct blk_mq_tag_set), GFP_KERNEL, md->numa_node_id); in dm_mq_init_request_queue() 542 if (!md->tag_set) in dm_mq_init_request_queue() 545 md->tag_set->ops = &dm_mq_ops; in dm_mq_init_request_queue() 546 md->tag_set->queue_depth = dm_get_blk_mq_queue_depth(); in dm_mq_init_request_queue() 547 md->tag_set->numa_node = md->numa_node_id; in dm_mq_init_request_queue() 548 md->tag_set->flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_STACKING; in dm_mq_init_request_queue() 549 md->tag_set->nr_hw_queues = dm_get_blk_mq_nr_hw_queues(); in dm_mq_init_request_queue() 550 md->tag_set->driver_data = md; in dm_mq_init_request_queue() 552 md->tag_set->cmd_size = sizeof(struct dm_rq_target_io); in dm_mq_init_request_queue() 556 md->tag_set->cmd_size += immutable_tgt->per_io_data_size; in dm_mq_init_request_queue() [all …]
|
/linux-6.6.21/drivers/block/ |
D | z2ram.c | 310 static struct blk_mq_tag_set tag_set; variable 321 disk = blk_mq_alloc_disk(&tag_set, NULL); in z2ram_register_disk() 352 tag_set.ops = &z2_mq_ops; in z2_init() 353 tag_set.nr_hw_queues = 1; in z2_init() 354 tag_set.nr_maps = 1; in z2_init() 355 tag_set.queue_depth = 16; in z2_init() 356 tag_set.numa_node = NUMA_NO_NODE; in z2_init() 357 tag_set.flags = BLK_MQ_F_SHOULD_MERGE; in z2_init() 358 ret = blk_mq_alloc_tag_set(&tag_set); in z2_init() 371 blk_mq_free_tag_set(&tag_set); in z2_init() [all …]
|
D | nbd.c | 116 struct blk_mq_tag_set tag_set; member 254 blk_mq_free_tag_set(&nbd->tag_set); in nbd_dev_remove() 438 (config->num_connections == 1 && nbd->tag_set.timeout)) { in nbd_xmit_timeout() 471 if (!nbd->tag_set.timeout) { in nbd_xmit_timeout() 760 if (hwq < nbd->tag_set.nr_hw_queues) in nbd_handle_reply() 761 req = blk_mq_tag_to_rq(nbd->tag_set.tags[hwq], in nbd_handle_reply() 927 blk_mq_tagset_busy_iter(&nbd->tag_set, nbd_clear_req, NULL); in nbd_clear_que() 1226 if (nbd->tag_set.timeout) in nbd_reconnect_socket() 1227 sock->sk->sk_sndtimeo = nbd->tag_set.timeout; in nbd_reconnect_socket() 1355 nbd->tag_set.timeout = 0; in nbd_config_put() [all …]
|
D | virtio_blk.c | 72 struct blk_mq_tag_set tag_set; member 1368 memset(&vblk->tag_set, 0, sizeof(vblk->tag_set)); in virtblk_probe() 1369 vblk->tag_set.ops = &virtio_mq_ops; in virtblk_probe() 1370 vblk->tag_set.queue_depth = queue_depth; in virtblk_probe() 1371 vblk->tag_set.numa_node = NUMA_NO_NODE; in virtblk_probe() 1372 vblk->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; in virtblk_probe() 1373 vblk->tag_set.cmd_size = in virtblk_probe() 1376 vblk->tag_set.driver_data = vblk; in virtblk_probe() 1377 vblk->tag_set.nr_hw_queues = vblk->num_vqs; in virtblk_probe() 1378 vblk->tag_set.nr_maps = 1; in virtblk_probe() [all …]
|
D | ataflop.c | 305 struct blk_mq_tag_set tag_set; member 1995 disk = blk_mq_alloc_disk(&unit[drive].tag_set, NULL); in ataflop_alloc_disk() 2049 blk_mq_free_tag_set(&unit[i].tag_set); in atari_floppy_cleanup() 2067 blk_mq_free_tag_set(&fs->tag_set); in atari_cleanup_floppy_disk() 2080 memset(&unit[i].tag_set, 0, sizeof(unit[i].tag_set)); in atari_floppy_init() 2081 unit[i].tag_set.ops = &ataflop_mq_ops; in atari_floppy_init() 2082 unit[i].tag_set.nr_hw_queues = 1; in atari_floppy_init() 2083 unit[i].tag_set.nr_maps = 1; in atari_floppy_init() 2084 unit[i].tag_set.queue_depth = 2; in atari_floppy_init() 2085 unit[i].tag_set.numa_node = NUMA_NO_NODE; in atari_floppy_init() [all …]
|
D | ublk_drv.c | 160 struct blk_mq_tag_set tag_set; member 1406 req = blk_mq_tag_to_rq(ub->tag_set.tags[qid], tag); in ublk_commit_completion() 1439 rq = blk_mq_tag_to_rq(ub->tag_set.tags[ubq->q_id], i); in ublk_abort_queue() 1535 blk_mq_tagset_busy_iter(&ub->tag_set, in ublk_wait_tagset_rqs_idle() 1641 struct request *req = blk_mq_tag_to_rq(ub->tag_set.tags[q_id], tag); in ublk_handle_need_get_data() 1748 req = blk_mq_tag_to_rq(ub->tag_set.tags[ub_cmd->q_id], tag); in __ublk_ch_uring_cmd() 1799 req = blk_mq_tag_to_rq(ub->tag_set.tags[ubq->q_id], tag); in __ublk_check_and_get_req() 2056 blk_mq_free_tag_set(&ub->tag_set); in ublk_cdev_rel() 2110 ub->tag_set.ops = &ublk_mq_ops; in ublk_add_tag_set() 2111 ub->tag_set.nr_hw_queues = ub->dev_info.nr_hw_queues; in ublk_add_tag_set() [all …]
|
D | ps3disk.c | 32 struct blk_mq_tag_set tag_set; member 429 error = blk_mq_alloc_sq_tag_set(&priv->tag_set, &ps3disk_mq_ops, 1, in ps3disk_probe() 434 gendisk = blk_mq_alloc_disk(&priv->tag_set, dev); in ps3disk_probe() 478 blk_mq_free_tag_set(&priv->tag_set); in ps3disk_probe() 504 blk_mq_free_tag_set(&priv->tag_set); in ps3disk_remove()
|
D | amiflop.c | 205 struct blk_mq_tag_set tag_set; member 1782 disk = blk_mq_alloc_disk(&unit[drive].tag_set, NULL); in fd_alloc_disk() 1812 memset(&unit[drive].tag_set, 0, sizeof(unit[drive].tag_set)); in fd_alloc_drive() 1813 unit[drive].tag_set.ops = &amiflop_mq_ops; in fd_alloc_drive() 1814 unit[drive].tag_set.nr_hw_queues = 1; in fd_alloc_drive() 1815 unit[drive].tag_set.nr_maps = 1; in fd_alloc_drive() 1816 unit[drive].tag_set.queue_depth = 2; in fd_alloc_drive() 1817 unit[drive].tag_set.numa_node = NUMA_NO_NODE; in fd_alloc_drive() 1818 unit[drive].tag_set.flags = BLK_MQ_F_SHOULD_MERGE; in fd_alloc_drive() 1819 if (blk_mq_alloc_tag_set(&unit[drive].tag_set)) in fd_alloc_drive() [all …]
|
D | xen-blkfront.c | 226 struct blk_mq_tag_set tag_set; member 1117 memset(&info->tag_set, 0, sizeof(info->tag_set)); in xlvbd_alloc_gendisk() 1118 info->tag_set.ops = &blkfront_mq_ops; in xlvbd_alloc_gendisk() 1119 info->tag_set.nr_hw_queues = info->nr_rings; in xlvbd_alloc_gendisk() 1127 info->tag_set.queue_depth = BLK_RING_SIZE(info) / 2; in xlvbd_alloc_gendisk() 1129 info->tag_set.queue_depth = BLK_RING_SIZE(info); in xlvbd_alloc_gendisk() 1130 info->tag_set.numa_node = NUMA_NO_NODE; in xlvbd_alloc_gendisk() 1131 info->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; in xlvbd_alloc_gendisk() 1132 info->tag_set.cmd_size = sizeof(struct blkif_req); in xlvbd_alloc_gendisk() 1133 info->tag_set.driver_data = info; in xlvbd_alloc_gendisk() [all …]
|
/linux-6.6.21/drivers/mmc/core/ |
D | queue.c | 420 memset(&mq->tag_set, 0, sizeof(mq->tag_set)); in mmc_init_queue() 421 mq->tag_set.ops = &mmc_mq_ops; in mmc_init_queue() 427 mq->tag_set.queue_depth = in mmc_init_queue() 430 mq->tag_set.queue_depth = MMC_QUEUE_DEPTH; in mmc_init_queue() 431 mq->tag_set.numa_node = NUMA_NO_NODE; in mmc_init_queue() 432 mq->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_BLOCKING; in mmc_init_queue() 433 mq->tag_set.nr_hw_queues = 1; in mmc_init_queue() 434 mq->tag_set.cmd_size = sizeof(struct mmc_queue_req); in mmc_init_queue() 435 mq->tag_set.driver_data = mq; in mmc_init_queue() 449 ret = blk_mq_alloc_tag_set(&mq->tag_set); in mmc_init_queue() [all …]
|
/linux-6.6.21/drivers/mtd/ubi/ |
D | block.c | 85 struct blk_mq_tag_set tag_set; member 380 dev->tag_set.ops = &ubiblock_mq_ops; in ubiblock_create() 381 dev->tag_set.queue_depth = 64; in ubiblock_create() 382 dev->tag_set.numa_node = NUMA_NO_NODE; in ubiblock_create() 383 dev->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_BLOCKING; in ubiblock_create() 384 dev->tag_set.cmd_size = sizeof(struct ubiblock_pdu); in ubiblock_create() 385 dev->tag_set.driver_data = dev; in ubiblock_create() 386 dev->tag_set.nr_hw_queues = 1; in ubiblock_create() 388 ret = blk_mq_alloc_tag_set(&dev->tag_set); in ubiblock_create() 396 gd = blk_mq_alloc_disk(&dev->tag_set, dev); in ubiblock_create() [all …]
|
/linux-6.6.21/block/ |
D | bsg-lib.c | 22 struct blk_mq_tag_set tag_set; member 279 container_of(q->tag_set, struct bsg_set, tag_set); in bsg_queue_rq() 324 container_of(q->tag_set, struct bsg_set, tag_set); in bsg_remove_queue() 329 blk_mq_free_tag_set(&bset->tag_set); in bsg_remove_queue() 338 container_of(rq->q->tag_set, struct bsg_set, tag_set); in bsg_timeout() 376 set = &bset->tag_set; in bsg_setup_queue()
|
D | blk-mq-sched.c | 386 if (blk_mq_is_shared_tags(q->tag_set->flags)) { in blk_mq_sched_alloc_map_and_rqs() 391 hctx->sched_tags = blk_mq_alloc_map_and_rqs(q->tag_set, hctx_idx, in blk_mq_sched_alloc_map_and_rqs() 425 struct blk_mq_tag_set *set = queue->tag_set; in blk_mq_init_sched_shared_tags() 445 unsigned int flags = q->tag_set->flags; in blk_mq_init_sched() 456 q->nr_requests = 2 * min_t(unsigned int, q->tag_set->queue_depth, in blk_mq_init_sched() 514 if (blk_mq_is_shared_tags(q->tag_set->flags)) { in blk_mq_sched_free_rqs() 515 blk_mq_free_rqs(q->tag_set, q->sched_shared_tags, in blk_mq_sched_free_rqs() 520 blk_mq_free_rqs(q->tag_set, in blk_mq_sched_free_rqs()
|
D | blk-mq-tag.c | 271 struct blk_mq_tag_set *set = q->tag_set; in bt_iter() 507 if (blk_mq_is_shared_tags(q->tag_set->flags)) { in blk_mq_queue_tag_busy_iter() 508 struct blk_mq_tags *tags = q->tag_set->shared_tags; in blk_mq_queue_tag_busy_iter() 615 struct blk_mq_tag_set *set = hctx->queue->tag_set; in blk_mq_tag_update_depth() 663 q->nr_requests - q->tag_set->reserved_tags); in blk_mq_tag_update_sched_shared_tags()
|
D | elevator.c | 561 (q->tag_set && (q->tag_set->flags & BLK_MQ_F_NO_SCHED))) in elv_support_iosched() 572 if (q->tag_set && q->tag_set->flags & BLK_MQ_F_NO_SCHED_BY_DEFAULT) in elevator_get_default() 576 !blk_mq_is_shared_tags(q->tag_set->flags)) in elevator_get_default() 708 q->nr_requests = q->tag_set->queue_depth; in elevator_disable()
|
/linux-6.6.21/drivers/mtd/ |
D | mtd_blkdevs.c | 33 blk_mq_free_tag_set(dev->tag_set); in blktrans_dev_release() 34 kfree(dev->tag_set); in blktrans_dev_release() 326 new->tag_set = kzalloc(sizeof(*new->tag_set), GFP_KERNEL); in add_mtd_blktrans_dev() 327 if (!new->tag_set) in add_mtd_blktrans_dev() 330 ret = blk_mq_alloc_sq_tag_set(new->tag_set, &mtd_mq_ops, 2, in add_mtd_blktrans_dev() 336 gd = blk_mq_alloc_disk(new->tag_set, new); in add_mtd_blktrans_dev() 403 blk_mq_free_tag_set(new->tag_set); in add_mtd_blktrans_dev() 405 kfree(new->tag_set); in add_mtd_blktrans_dev()
|
/linux-6.6.21/include/scsi/ |
D | scsi_tcq.h | 32 if (hwq < shost->tag_set.nr_hw_queues) { in scsi_host_find_tag() 33 req = blk_mq_tag_to_rq(shost->tag_set.tags[hwq], in scsi_host_find_tag()
|
/linux-6.6.21/drivers/scsi/ |
D | scsi_lib.c | 1870 struct Scsi_Host *shost = container_of(set, struct Scsi_Host, tag_set); in scsi_map_queues() 1966 struct blk_mq_tag_set *tag_set = &shost->tag_set; in scsi_mq_setup_tags() local 1975 memset(tag_set, 0, sizeof(*tag_set)); in scsi_mq_setup_tags() 1977 tag_set->ops = &scsi_mq_ops; in scsi_mq_setup_tags() 1979 tag_set->ops = &scsi_mq_ops_no_commit; in scsi_mq_setup_tags() 1980 tag_set->nr_hw_queues = shost->nr_hw_queues ? : 1; in scsi_mq_setup_tags() 1981 tag_set->nr_maps = shost->nr_maps ? : 1; in scsi_mq_setup_tags() 1982 tag_set->queue_depth = shost->can_queue; in scsi_mq_setup_tags() 1983 tag_set->cmd_size = cmd_size; in scsi_mq_setup_tags() 1984 tag_set->numa_node = dev_to_node(shost->dma_dev); in scsi_mq_setup_tags() [all …]
|
/linux-6.6.21/drivers/block/rnbd/ |
D | rnbd-clt.c | 737 if (sess->tag_set.tags) in destroy_mq_tags() 738 blk_mq_free_tag_set(&sess->tag_set); in destroy_mq_tags() 1206 struct blk_mq_tag_set *tag_set = &sess->tag_set; in setup_mq_tags() local 1208 memset(tag_set, 0, sizeof(*tag_set)); in setup_mq_tags() 1209 tag_set->ops = &rnbd_mq_ops; in setup_mq_tags() 1210 tag_set->queue_depth = sess->queue_depth; in setup_mq_tags() 1211 tag_set->numa_node = NUMA_NO_NODE; in setup_mq_tags() 1212 tag_set->flags = BLK_MQ_F_SHOULD_MERGE | in setup_mq_tags() 1214 tag_set->cmd_size = sizeof(struct rnbd_iu) + RNBD_RDMA_SGL_SIZE; in setup_mq_tags() 1217 tag_set->nr_maps = sess->nr_poll_queues ? HCTX_MAX_TYPES : 2; in setup_mq_tags() [all …]
|
/linux-6.6.21/arch/um/drivers/ |
D | ubd_kern.c | 169 struct blk_mq_tag_set tag_set; member 816 blk_mq_free_tag_set(&ubd_dev->tag_set); in ubd_device_release() 899 ubd_dev->tag_set.ops = &ubd_mq_ops; in ubd_add() 900 ubd_dev->tag_set.queue_depth = 64; in ubd_add() 901 ubd_dev->tag_set.numa_node = NUMA_NO_NODE; in ubd_add() 902 ubd_dev->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; in ubd_add() 903 ubd_dev->tag_set.driver_data = ubd_dev; in ubd_add() 904 ubd_dev->tag_set.nr_hw_queues = 1; in ubd_add() 906 err = blk_mq_alloc_tag_set(&ubd_dev->tag_set); in ubd_add() 910 disk = blk_mq_alloc_disk(&ubd_dev->tag_set, ubd_dev); in ubd_add() [all …]
|
/linux-6.6.21/drivers/nvme/target/ |
D | loop.c | 35 struct blk_mq_tag_set tag_set; member 88 return queue->ctrl->tag_set.tags[queue_idx - 1]; in nvme_loop_tagset() 213 (set == &ctrl->tag_set) ? hctx_idx + 1 : 0); in nvme_loop_init_request() 456 blk_mq_update_nr_hw_queues(&ctrl->tag_set, in nvme_loop_reset_ctrl_work() 496 ret = nvme_alloc_io_tag_set(&ctrl->ctrl, &ctrl->tag_set, in nvme_loop_create_io_queues()
|
/linux-6.6.21/drivers/cdrom/ |
D | gdrom.c | 104 struct blk_mq_tag_set tag_set; member 776 err = blk_mq_alloc_sq_tag_set(&gd.tag_set, &gdrom_mq_ops, 1, in probe_gdrom() 781 gd.disk = blk_mq_alloc_disk(&gd.tag_set, NULL); in probe_gdrom() 822 blk_mq_free_tag_set(&gd.tag_set); in probe_gdrom() 834 blk_mq_free_tag_set(&gd.tag_set); in remove_gdrom()
|
/linux-6.6.21/drivers/block/null_blk/ |
D | main.c | 72 static struct blk_mq_tag_set tag_set; variable 378 set = dev->nullb->tag_set; in nullb_update_nr_hw_queues() 1836 nullb->tag_set == &nullb->__tag_set) in null_del_dev() 1837 blk_mq_free_tag_set(nullb->tag_set); in null_del_dev() 2108 nullb->tag_set = &tag_set; in null_add_dev() 2111 nullb->tag_set = &nullb->__tag_set; in null_add_dev() 2112 rv = null_init_tag_set(nullb, nullb->tag_set); in null_add_dev() 2118 nullb->tag_set->timeout = 5 * HZ; in null_add_dev() 2119 nullb->disk = blk_mq_alloc_disk(nullb->tag_set, nullb); in null_add_dev() 2203 if (dev->queue_mode == NULL_Q_MQ && nullb->tag_set == &nullb->__tag_set) in null_add_dev() [all …]
|