Skip to content

Commit 482157e

Browse files
jinpuwanggregkh
authored andcommitted
RDMA/rtrs: Do not signal for heatbeat
commit b38041d upstream. For HB, there is no need to generate signal for completion. Also remove a comment accordingly. Fixes: c0894b3 ("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>
1 parent e335952 commit 482157e

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎drivers/infiniband/ulp/rtrs/rtrs-clt.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ static void rtrs_clt_rdma_done(struct ib_cq *cq, struct ib_wc *wc)
672672
case IB_WC_RDMA_WRITE:
673673
/*
674674
* post_send() RDMA write completions of IO reqs (read/write)
675-
* and hb
676675
*/
677676
break;
678677

‎drivers/infiniband/ulp/rtrs/rtrs-srv.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,6 @@ static void rtrs_srv_rdma_done(struct ib_cq *cq, struct ib_wc *wc)
12601260
case IB_WC_SEND:
12611261
/*
12621262
* post_send() RDMA write completions of IO reqs (read/write)
1263-
* and hb
12641263
*/
12651264
atomic_add(srv->queue_depth, &con->sq_wr_avail);
12661265

‎drivers/infiniband/ulp/rtrs/rtrs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ void rtrs_send_hb_ack(struct rtrs_sess *sess)
325325

326326
imm = rtrs_to_imm(RTRS_HB_ACK_IMM, 0);
327327
err = rtrs_post_rdma_write_imm_empty(usr_con, sess->hb_cqe, imm,
328-
IB_SEND_SIGNALED, NULL);
328+
0, NULL);
329329
if (err) {
330330
sess->hb_err_handler(usr_con);
331331
return;
@@ -354,7 +354,7 @@ static void hb_work(struct work_struct *work)
354354
}
355355
imm = rtrs_to_imm(RTRS_HB_MSG_IMM, 0);
356356
err = rtrs_post_rdma_write_imm_empty(usr_con, sess->hb_cqe, imm,
357-
IB_SEND_SIGNALED, NULL);
357+
0, NULL);
358358
if (err) {
359359
sess->hb_err_handler(usr_con);
360360
return;

0 commit comments

Comments
 (0)