[Pkg-ofed-commits] [libfabric] 13/123: prov/psm: call AM progress function only when AM is used
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 b2a1c6fd836d9d22b700b865ab1709d7b8014b6b
Author: Jianxin Xiong <jianxin.xiong at intel.com>
Date: Thu Aug 27 13:55:16 2015 -0700
prov/psm: call AM progress function only when AM is used
Reduce the polling overhead by a small but visible amount when AM
is not used at all.
Signed-off-by: Jianxin Xiong <jianxin.xiong at intel.com>
---
prov/psm/src/psmx.h | 3 ++-
prov/psm/src/psmx_cq.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/prov/psm/src/psmx.h b/prov/psm/src/psmx.h
index 675950a..0a298fe 100644
--- a/prov/psm/src/psmx.h
+++ b/prov/psm/src/psmx.h
@@ -668,7 +668,8 @@ static inline void psmx_progress(struct psmx_fid_domain *domain)
{
if (domain) {
psmx_cq_poll_mq(NULL, domain, NULL, 0, NULL);
- psmx_am_progress(domain);
+ if (domain->am_initialized)
+ psmx_am_progress(domain);
}
}
diff --git a/prov/psm/src/psmx_cq.c b/prov/psm/src/psmx_cq.c
index 2c0b343..e8eaa2e 100644
--- a/prov/psm/src/psmx_cq.c
+++ b/prov/psm/src/psmx_cq.c
@@ -535,7 +535,8 @@ static ssize_t psmx_cq_readfrom(struct fid_cq *cq, void *buf, size_t count,
if (ret > 0)
return ret;
- psmx_am_progress(cq_priv->domain);
+ if (cq_priv->domain->am_initialized)
+ psmx_am_progress(cq_priv->domain);
}
if (cq_priv->pending_error)
--
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