[Pkg-ofed-commits] [libfabric] 29/123: usnic: usdf_cq.c: Return number of read completions on error.
Ana Beatriz Guerrero López
ana at moszumanska.debian.org
Sat Oct 22 12:28:27 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 162ab5dd06a2bd53f4944525662e03cff013640a
Author: Ben Turrubiates <bturrubi at cisco.com>
Date: Thu Aug 27 14:46:37 2015 -0700
usnic: usdf_cq.c: Return number of read completions on error.
If an error is available and completions have already been copied into
the buffer, then return the number of read completions.
Signed-off-by: Ben Turrubiates <bturrubi at cisco.com>
---
prov/usnic/src/usdf_cq.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/prov/usnic/src/usdf_cq.c b/prov/usnic/src/usdf_cq.c
index 5dd2b11..1ca0616 100644
--- a/prov/usnic/src/usdf_cq.c
+++ b/prov/usnic/src/usdf_cq.c
@@ -740,7 +740,10 @@ usdf_cq_read_common_soft(struct fid_cq *fcq, void *buf, size_t count,
break;
if (tail->cse_prov_errno > 0) {
- return -FI_EAVAIL;
+ if (entry > (uint8_t *) buf)
+ break;
+ else
+ return -FI_EAVAIL;
}
ret = usdf_cq_copy_soft_entry(entry, tail, format);
if (ret < 0) {
--
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