summaryrefslogtreecommitdiffstats
path: root/net/rds/rdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rds/rdma.c')
-rw-r--r--net/rds/rdma.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/rds/rdma.c b/net/rds/rdma.c
index 4297f3f337d7..138aef644c56 100644
--- a/net/rds/rdma.c
+++ b/net/rds/rdma.c
@@ -627,6 +627,16 @@ int rds_cmsg_rdma_args(struct rds_sock *rs, struct rds_message *rm,
627 } 627 }
628 op->op_notifier->n_user_token = args->user_token; 628 op->op_notifier->n_user_token = args->user_token;
629 op->op_notifier->n_status = RDS_RDMA_SUCCESS; 629 op->op_notifier->n_status = RDS_RDMA_SUCCESS;
630
631 /* Enable rmda notification on data operation for composite
632 * rds messages and make sure notification is enabled only
633 * for the data operation which follows it so that application
634 * gets notified only after full message gets delivered.
635 */
636 if (rm->data.op_sg) {
637 rm->rdma.op_notify = 0;
638 rm->data.op_notify = !!(args->flags & RDS_RDMA_NOTIFY_ME);
639 }
630 } 640 }
631 641
632 /* The cookie contains the R_Key of the remote memory region, and 642 /* The cookie contains the R_Key of the remote memory region, and