fc.c (dcef77274ae52136925287b6b59d5c6e6a4adfb9) fc.c (db45e1a5ddccc034eb60d62fc5352022d7963ae2)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2016 Avago Technologies. All rights reserved.
4 */
5#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
6#include <linux/module.h>
7#include <linux/parser.h>
8#include <uapi/scsi/fc/fc_fs.h>

--- 2902 unchanged lines hidden (view full) ---

2911
2912 ctrl->ctrl.queue_count = nr_io_queues + 1;
2913 if (!nr_io_queues)
2914 return 0;
2915
2916 nvme_fc_init_io_queues(ctrl);
2917
2918 ret = nvme_alloc_io_tag_set(&ctrl->ctrl, &ctrl->tag_set,
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2016 Avago Technologies. All rights reserved.
4 */
5#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
6#include <linux/module.h>
7#include <linux/parser.h>
8#include <uapi/scsi/fc/fc_fs.h>

--- 2902 unchanged lines hidden (view full) ---

2911
2912 ctrl->ctrl.queue_count = nr_io_queues + 1;
2913 if (!nr_io_queues)
2914 return 0;
2915
2916 nvme_fc_init_io_queues(ctrl);
2917
2918 ret = nvme_alloc_io_tag_set(&ctrl->ctrl, &ctrl->tag_set,
2919 &nvme_fc_mq_ops, BLK_MQ_F_SHOULD_MERGE, 1,
2919 &nvme_fc_mq_ops, 1,
2920 struct_size((struct nvme_fcp_op_w_sgl *)NULL, priv,
2921 ctrl->lport->ops->fcprqst_priv_sz));
2922 if (ret)
2923 return ret;
2924
2925 ret = nvme_fc_create_hw_io_queues(ctrl, ctrl->ctrl.sqsize + 1);
2926 if (ret)
2927 goto out_cleanup_tagset;

--- 589 unchanged lines hidden (view full) ---

3517 ctrl->queues = kcalloc(ctrl->ctrl.queue_count,
3518 sizeof(struct nvme_fc_queue), GFP_KERNEL);
3519 if (!ctrl->queues)
3520 goto out_free_ida;
3521
3522 nvme_fc_init_queue(ctrl, 0);
3523
3524 ret = nvme_alloc_admin_tag_set(&ctrl->ctrl, &ctrl->admin_tag_set,
2920 struct_size((struct nvme_fcp_op_w_sgl *)NULL, priv,
2921 ctrl->lport->ops->fcprqst_priv_sz));
2922 if (ret)
2923 return ret;
2924
2925 ret = nvme_fc_create_hw_io_queues(ctrl, ctrl->ctrl.sqsize + 1);
2926 if (ret)
2927 goto out_cleanup_tagset;

--- 589 unchanged lines hidden (view full) ---

3517 ctrl->queues = kcalloc(ctrl->ctrl.queue_count,
3518 sizeof(struct nvme_fc_queue), GFP_KERNEL);
3519 if (!ctrl->queues)
3520 goto out_free_ida;
3521
3522 nvme_fc_init_queue(ctrl, 0);
3523
3524 ret = nvme_alloc_admin_tag_set(&ctrl->ctrl, &ctrl->admin_tag_set,
3525 &nvme_fc_admin_mq_ops, BLK_MQ_F_NO_SCHED,
3525 &nvme_fc_admin_mq_ops,
3526 struct_size((struct nvme_fcp_op_w_sgl *)NULL, priv,
3527 ctrl->lport->ops->fcprqst_priv_sz));
3528 if (ret)
3529 goto out_free_queues;
3530
3531 /*
3532 * Would have been nice to init io queues tag set as well.
3533 * However, we require interaction from the controller

--- 464 unchanged lines hidden ---
3526 struct_size((struct nvme_fcp_op_w_sgl *)NULL, priv,
3527 ctrl->lport->ops->fcprqst_priv_sz));
3528 if (ret)
3529 goto out_free_queues;
3530
3531 /*
3532 * Would have been nice to init io queues tag set as well.
3533 * However, we require interaction from the controller

--- 464 unchanged lines hidden ---