rdma.c (35bb28ece90dfb7f72b77ba529f25f79323d9581) | rdma.c (abec6561fc4e0fbb19591a0b35676d8c783b5493) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * NVMe over Fabrics RDMA target. 4 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 5 */ 6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 7#include <linux/atomic.h> 8#include <linux/ctype.h> --- 788 unchanged lines hidden (view full) --- 797 atomic_add(rsp->n_rdma, &queue->sq_wr_avail); 798 rsp->n_rdma = 0; 799 800 if (unlikely(wc->status != IB_WC_SUCCESS)) { 801 nvmet_rdma_rw_ctx_destroy(rsp); 802 nvmet_req_uninit(&rsp->req); 803 nvmet_rdma_release_rsp(rsp); 804 if (wc->status != IB_WC_WR_FLUSH_ERR) { | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * NVMe over Fabrics RDMA target. 4 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 5 */ 6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 7#include <linux/atomic.h> 8#include <linux/ctype.h> --- 788 unchanged lines hidden (view full) --- 797 atomic_add(rsp->n_rdma, &queue->sq_wr_avail); 798 rsp->n_rdma = 0; 799 800 if (unlikely(wc->status != IB_WC_SUCCESS)) { 801 nvmet_rdma_rw_ctx_destroy(rsp); 802 nvmet_req_uninit(&rsp->req); 803 nvmet_rdma_release_rsp(rsp); 804 if (wc->status != IB_WC_WR_FLUSH_ERR) { |
805 pr_info("RDMA WRITE for CQE 0x%p failed with status %s (%d).\n", 806 wc->wr_cqe, ib_wc_status_msg(wc->status), 807 wc->status); | 805 pr_info("RDMA WRITE for CQE failed with status %s (%d).\n", 806 ib_wc_status_msg(wc->status), wc->status); |
808 nvmet_rdma_error_comp(queue); 809 } 810 return; 811 } 812 813 /* 814 * Upon RDMA completion check the signature status 815 * - if succeeded send good NVMe response --- 1251 unchanged lines hidden --- | 807 nvmet_rdma_error_comp(queue); 808 } 809 return; 810 } 811 812 /* 813 * Upon RDMA completion check the signature status 814 * - if succeeded send good NVMe response --- 1251 unchanged lines hidden --- |