rdma.c (6b7781b42dc9bc9bcd1523b6c24b876cdda0bef3) rdma.c (549f01ae7b913355bea76100d3f17694bc9ec769)
1/*
2 * NVMe over Fabrics RDMA target.
3 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

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

562 WARN_ON(rsp->n_rdma <= 0);
563 atomic_add(rsp->n_rdma, &queue->sq_wr_avail);
564 rdma_rw_ctx_destroy(&rsp->rw, queue->cm_id->qp,
565 queue->cm_id->port_num, rsp->req.sg,
566 rsp->req.sg_cnt, nvmet_data_dir(&rsp->req));
567 rsp->n_rdma = 0;
568
569 if (unlikely(wc->status != IB_WC_SUCCESS)) {
1/*
2 * NVMe over Fabrics RDMA target.
3 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

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

562 WARN_ON(rsp->n_rdma <= 0);
563 atomic_add(rsp->n_rdma, &queue->sq_wr_avail);
564 rdma_rw_ctx_destroy(&rsp->rw, queue->cm_id->qp,
565 queue->cm_id->port_num, rsp->req.sg,
566 rsp->req.sg_cnt, nvmet_data_dir(&rsp->req));
567 rsp->n_rdma = 0;
568
569 if (unlikely(wc->status != IB_WC_SUCCESS)) {
570 nvmet_req_uninit(&rsp->req);
570 nvmet_rdma_release_rsp(rsp);
571 if (wc->status != IB_WC_WR_FLUSH_ERR) {
572 pr_info("RDMA READ for CQE 0x%p failed with status %s (%d).\n",
573 wc->wr_cqe, ib_wc_status_msg(wc->status), wc->status);
574 nvmet_rdma_error_comp(queue);
575 }
576 return;
577 }

--- 976 unchanged lines hidden ---
571 nvmet_rdma_release_rsp(rsp);
572 if (wc->status != IB_WC_WR_FLUSH_ERR) {
573 pr_info("RDMA READ for CQE 0x%p failed with status %s (%d).\n",
574 wc->wr_cqe, ib_wc_status_msg(wc->status), wc->status);
575 nvmet_rdma_error_comp(queue);
576 }
577 return;
578 }

--- 976 unchanged lines hidden ---