RDMA/rtrs: Do not signal for heatbeat
authorJack Wang <jinpu.wang@cloud.ionos.com>
Thu, 17 Dec 2020 14:19:11 +0000 (15:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Mar 2021 11:34:06 +0000 (12:34 +0100)
commit b38041d50add1c881fbc60eb2be93b58fc58ea21 upstream.

For HB, there is no need to generate signal for completion.

Also remove a comment accordingly.

Fixes: c0894b3ea69d ("RDMA/rtrs: core: lib functions shared between client and server modules")
Link: https://lore.kernel.org/r/20201217141915.56989-16-jinpu.wang@cloud.ionos.com
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Reported-by: Gioh Kim <gi-oh.kim@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/rtrs/rtrs-clt.c
drivers/infiniband/ulp/rtrs/rtrs-srv.c
drivers/infiniband/ulp/rtrs/rtrs.c

index fc0e90915678ae7c7c8501cb2df9493931f18bda..df1b9074f9e99140f1142dedb50ef7d8995d8ee8 100644 (file)
@@ -672,7 +672,6 @@ static void rtrs_clt_rdma_done(struct ib_cq *cq, struct ib_wc *wc)
        case IB_WC_RDMA_WRITE:
                /*
                 * post_send() RDMA write completions of IO reqs (read/write)
-                * and hb
                 */
                break;
 
index f009a6907169c135ad5c3e877b1833c72a647020..5d5d6297f2ff864353a8a919dccb3e262df3ec4c 100644 (file)
@@ -1260,7 +1260,6 @@ static void rtrs_srv_rdma_done(struct ib_cq *cq, struct ib_wc *wc)
        case IB_WC_SEND:
                /*
                 * post_send() RDMA write completions of IO reqs (read/write)
-                * and hb
                 */
                atomic_add(srv->queue_depth, &con->sq_wr_avail);
 
index 23e5452e10c46228675f70afbda4d1938263de1b..a3e1a027f8081691fe10fa1839c4f056812282a1 100644 (file)
@@ -325,7 +325,7 @@ void rtrs_send_hb_ack(struct rtrs_sess *sess)
 
        imm = rtrs_to_imm(RTRS_HB_ACK_IMM, 0);
        err = rtrs_post_rdma_write_imm_empty(usr_con, sess->hb_cqe, imm,
-                                             IB_SEND_SIGNALED, NULL);
+                                            0, NULL);
        if (err) {
                sess->hb_err_handler(usr_con);
                return;
@@ -354,7 +354,7 @@ static void hb_work(struct work_struct *work)
        }
        imm = rtrs_to_imm(RTRS_HB_MSG_IMM, 0);
        err = rtrs_post_rdma_write_imm_empty(usr_con, sess->hb_cqe, imm,
-                                             IB_SEND_SIGNALED, NULL);
+                                            0, NULL);
        if (err) {
                sess->hb_err_handler(usr_con);
                return;