projects
/
xeon-phi-kernel-module
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated micscif/micscif_rma_dma.c to use new timer API introduced in Linux 4.14.0.
[xeon-phi-kernel-module]
/
micscif
/
micscif_api.c
diff --git
a/micscif/micscif_api.c
b/micscif/micscif_api.c
index
d86cb05
..
a318a73
100644
(file)
--- a/
micscif/micscif_api.c
+++ b/
micscif/micscif_api.c
@@
-2004,7
+2004,7
@@
retry:
/* Roll back any pinned pages */
for (i = 0; i < pinned_pages->nr_pages; i++) {
if (pinned_pages->pages[i])
/* Roll back any pinned pages */
for (i = 0; i < pinned_pages->nr_pages; i++) {
if (pinned_pages->pages[i])
- p
age_cache_releas
e(pinned_pages->pages[i]);
+ p
ut_pag
e(pinned_pages->pages[i]);
}
prot &= ~SCIF_PROT_WRITE;
try_upgrade = false;
}
prot &= ~SCIF_PROT_WRITE;
try_upgrade = false;
@@
-2433,13
+2433,13
@@
scif_put_pages(struct scif_range *pages)
int ret;
struct reg_range_t *window = pages->cookie;
struct endpt *ep = (struct endpt *)window->ep;
int ret;
struct reg_range_t *window = pages->cookie;
struct endpt *ep = (struct endpt *)window->ep;
- if (atomic_read(&(&(
ep->ref_count))->refcount
) > 0) {
+ if (atomic_read(&(&(
&(ep->ref_count))->refcount)->refs
) > 0) {
kref_get(&(ep->ref_count));
} else {
WARN_ON(1);
}
ret = __scif_put_pages(pages);
kref_get(&(ep->ref_count));
} else {
WARN_ON(1);
}
ret = __scif_put_pages(pages);
- if (atomic_read(&(&(
ep->ref_count))->refcount
) > 0) {
+ if (atomic_read(&(&(
&(ep->ref_count))->refcount)->refs
) > 0) {
kref_put(&(ep->ref_count), scif_ref_rel);
} else {
//WARN_ON(1);
kref_put(&(ep->ref_count), scif_ref_rel);
} else {
//WARN_ON(1);