fc.c (08a7c7772b4db0be06e3b27239147c0a36e2a507) | fc.c (ff029451496364eef0d342618dfc9972b78f3392) |
---|---|
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> --- 213 unchanged lines hidden (view full) --- 222static DECLARE_COMPLETION(nvme_fc_unload_proceed); 223 224/* 225 * These items are short-term. They will eventually be moved into 226 * a generic FC class. See comments in module init. 227 */ 228static struct device *fc_udev_device; 229 | 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> --- 213 unchanged lines hidden (view full) --- 222static DECLARE_COMPLETION(nvme_fc_unload_proceed); 223 224/* 225 * These items are short-term. They will eventually be moved into 226 * a generic FC class. See comments in module init. 227 */ 228static struct device *fc_udev_device; 229 |
230static void nvme_fc_complete_rq(struct request *rq); |
|
230 231/* *********************** FC-NVME Port Management ************************ */ 232 233static void __nvme_fc_delete_hw_queue(struct nvme_fc_ctrl *, 234 struct nvme_fc_queue *, unsigned int); 235 236static void nvme_fc_handle_ls_rqst_work(struct work_struct *work); 237 --- 1790 unchanged lines hidden (view full) --- 2028 __nvme_fc_fcpop_chk_teardowns(ctrl, op, opstate); 2029 atomic_set(&op->state, FCPOP_STATE_IDLE); 2030 op->flags = FCOP_FLAGS_AEN; /* clear other flags */ 2031 nvme_fc_ctrl_put(ctrl); 2032 goto check_error; 2033 } 2034 2035 __nvme_fc_fcpop_chk_teardowns(ctrl, op, opstate); | 231 232/* *********************** FC-NVME Port Management ************************ */ 233 234static void __nvme_fc_delete_hw_queue(struct nvme_fc_ctrl *, 235 struct nvme_fc_queue *, unsigned int); 236 237static void nvme_fc_handle_ls_rqst_work(struct work_struct *work); 238 --- 1790 unchanged lines hidden (view full) --- 2029 __nvme_fc_fcpop_chk_teardowns(ctrl, op, opstate); 2030 atomic_set(&op->state, FCPOP_STATE_IDLE); 2031 op->flags = FCOP_FLAGS_AEN; /* clear other flags */ 2032 nvme_fc_ctrl_put(ctrl); 2033 goto check_error; 2034 } 2035 2036 __nvme_fc_fcpop_chk_teardowns(ctrl, op, opstate); |
2036 nvme_end_request(rq, status, result); | 2037 if (!nvme_end_request(rq, status, result)) 2038 nvme_fc_complete_rq(rq); |
2037 2038check_error: 2039 if (terminate_assoc) 2040 nvme_fc_error_recovery(ctrl, "transport detected io error"); 2041} 2042 2043static int 2044__nvme_fc_init_request(struct nvme_fc_ctrl *ctrl, --- 1859 unchanged lines hidden --- | 2039 2040check_error: 2041 if (terminate_assoc) 2042 nvme_fc_error_recovery(ctrl, "transport detected io error"); 2043} 2044 2045static int 2046__nvme_fc_init_request(struct nvme_fc_ctrl *ctrl, --- 1859 unchanged lines hidden --- |