Lines Matching full:disk
22 if (h->disk) in nvme_mpath_unfreeze()
23 blk_mq_unfreeze_queue(h->disk->queue); in nvme_mpath_unfreeze()
32 if (h->disk) in nvme_mpath_wait_freeze()
33 blk_mq_freeze_queue_wait(h->disk->queue); in nvme_mpath_wait_freeze()
42 if (h->disk) in nvme_mpath_start_freeze()
43 blk_freeze_queue_start(h->disk->queue); in nvme_mpath_start_freeze()
58 } else if (ns->head->disk) { in nvme_set_disk_name()
100 if (ns->head->disk) in nvme_kick_requeue_lists()
298 struct device *dev = disk_to_dev(head->disk); in nvme_ns_head_submit_bio()
313 bio->bi_disk = ns->disk; in nvme_ns_head_submit_bio()
316 disk_devt(ns->head->disk), in nvme_ns_head_submit_bio()
351 * Reset disk to the mpath node and resubmit to select a new in nvme_requeue_work()
354 bio->bi_disk = head->disk; in nvme_requeue_work()
381 /* set to a default value for 512 until disk is validated */ in nvme_mpath_alloc_disk()
390 head->disk = alloc_disk(0); in nvme_mpath_alloc_disk()
391 if (!head->disk) in nvme_mpath_alloc_disk()
393 head->disk->fops = &nvme_ns_head_ops; in nvme_mpath_alloc_disk()
394 head->disk->private_data = head; in nvme_mpath_alloc_disk()
395 head->disk->queue = q; in nvme_mpath_alloc_disk()
396 head->disk->flags = GENHD_FL_EXT_DEVT; in nvme_mpath_alloc_disk()
397 sprintf(head->disk->disk_name, "nvme%dn%d", in nvme_mpath_alloc_disk()
411 if (!head->disk) in nvme_mpath_set_live()
415 device_add_disk(&head->subsys->dev, head->disk, in nvme_mpath_set_live()
676 if (blk_queue_stable_writes(ns->queue) && ns->head->disk) in nvme_mpath_add_disk()
678 ns->head->disk->queue); in nvme_mpath_add_disk()
683 if (!head->disk) in nvme_mpath_remove_disk()
685 if (head->disk->flags & GENHD_FL_UP) in nvme_mpath_remove_disk()
686 del_gendisk(head->disk); in nvme_mpath_remove_disk()
687 blk_set_queue_dying(head->disk->queue); in nvme_mpath_remove_disk()
691 blk_cleanup_queue(head->disk->queue); in nvme_mpath_remove_disk()
695 * disk release to put a bogus reference on the in nvme_mpath_remove_disk()
698 head->disk->queue = NULL; in nvme_mpath_remove_disk()
700 put_disk(head->disk); in nvme_mpath_remove_disk()