[Pkg-ofed-commits] [libfabric] 14/123: prov/psm: fix the return value of fi_cq_readerr

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Sat Oct 22 12:28:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

ana pushed a commit to annotated tag v1.1.1
in repository libfabric.

commit e93ce5005c1a1283612e61a92eeefbe18526db1c
Author: Jianxin Xiong <jianxin.xiong at intel.com>
Date:   Thu Aug 27 13:55:28 2015 -0700

    prov/psm: fix the return value of fi_cq_readerr
    
    Return 1 on success and -FI_EAGAIN on empty
    
    Signed-off-by: Jianxin Xiong <jianxin.xiong at intel.com>
---
 prov/psm/src/psmx_cq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/prov/psm/src/psmx_cq.c b/prov/psm/src/psmx_cq.c
index e8eaa2e..11ae916 100644
--- a/prov/psm/src/psmx_cq.c
+++ b/prov/psm/src/psmx_cq.c
@@ -594,10 +594,10 @@ static ssize_t psmx_cq_readerr(struct fid_cq *cq, struct fi_cq_err_entry *buf,
 		memcpy(buf, &cq_priv->pending_error->cqe, sizeof *buf);
 		free(cq_priv->pending_error);
 		cq_priv->pending_error = NULL;
-		return sizeof *buf;
+		return 1;
 	}
 
-	return 0;
+	return -FI_EAGAIN;
 }
 
 static ssize_t psmx_cq_sreadfrom(struct fid_cq *cq, void *buf, size_t count,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/libfabric.git



More information about the Pkg-ofed-commits mailing list