fc.c (8613dec04e746f698418e9b8344acf19efff4997) fc.c (6887fc6495f2dfd55e088c982e983815278ee453)
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>

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

2728 }
2729
2730 fc_dma_sync_single_for_device(ctrl->lport->dev, op->fcp_req.cmddma,
2731 sizeof(op->cmd_iu), DMA_TO_DEVICE);
2732
2733 atomic_set(&op->state, FCPOP_STATE_ACTIVE);
2734
2735 if (!(op->flags & FCOP_FLAGS_AEN))
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>

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

2728 }
2729
2730 fc_dma_sync_single_for_device(ctrl->lport->dev, op->fcp_req.cmddma,
2731 sizeof(op->cmd_iu), DMA_TO_DEVICE);
2732
2733 atomic_set(&op->state, FCPOP_STATE_ACTIVE);
2734
2735 if (!(op->flags & FCOP_FLAGS_AEN))
2736 blk_mq_start_request(op->rq);
2736 nvme_start_request(op->rq);
2737
2738 cmdiu->csn = cpu_to_be32(atomic_inc_return(&queue->csn));
2739 ret = ctrl->lport->ops->fcp_io(&ctrl->lport->localport,
2740 &ctrl->rport->remoteport,
2741 queue->lldd_handle, &op->fcp_req);
2742
2743 if (ret) {
2744 /*

--- 1241 unchanged lines hidden ---
2737
2738 cmdiu->csn = cpu_to_be32(atomic_inc_return(&queue->csn));
2739 ret = ctrl->lport->ops->fcp_io(&ctrl->lport->localport,
2740 &ctrl->rport->remoteport,
2741 queue->lldd_handle, &op->fcp_req);
2742
2743 if (ret) {
2744 /*

--- 1241 unchanged lines hidden ---