From ebb4c946bb1b953f5bf0db7ea4f86add84b7a925 Mon Sep 17 00:00:00 2001 From: Devendar Bureddy Date: Mon, 5 Aug 2019 21:31:55 +0300 Subject: [PATCH] UCP/PROTO: Fix mem type support with generic datatype --- src/ucp/proto/proto_am.inl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ucp/proto/proto_am.inl b/src/ucp/proto/proto_am.inl index 4ab53b8af09..44632bbed61 100644 --- a/src/ucp/proto/proto_am.inl +++ b/src/ucp/proto/proto_am.inl @@ -349,12 +349,8 @@ ucp_proto_get_zcopy_threshold(const ucp_request_t *req, return max_zcopy; } - if (ucs_unlikely(!UCP_MEM_IS_HOST(req->send.mem_type))) { - return ucs_min(max_zcopy, msg_config->mem_type_zcopy_thresh[req->send.mem_type]); - } - if (ucs_likely(UCP_DT_IS_CONTIG(req->send.datatype))) { - return ucs_min(max_zcopy, msg_config->zcopy_thresh[0]); + return ucs_min(max_zcopy, msg_config->mem_type_zcopy_thresh[req->send.mem_type]); } else if (UCP_DT_IS_IOV(req->send.datatype)) { if (0 == count) { /* disable zcopy */