projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5611cc4
)
IB/qib: Correct sense on freectxts increment and decrement
author
Mike Marciniszyn
<
[email protected]
>
Fri, 2 Dec 2011 17:41:30 +0000
(12:41 -0500)
committer
Roland Dreier
<
[email protected]
>
Mon, 19 Dec 2011 17:19:34 +0000
(09:19 -0800)
Commit
53ab1c64983
("IB/qib: Correct nfreectxts for multiple HCAs")
reversed the increments and decrements of dd->nfreectxts. Fix it.
Reviewed-by: Ram Vepa <
[email protected]
>
Signed-off-by: Mike Marciniszyn <
[email protected]
>
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/infiniband/hw/qib/qib_file_ops.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/qib/qib_file_ops.c
b/drivers/infiniband/hw/qib/qib_file_ops.c
index 574600ef5b428e4766d8cd431632a0e131c176a9..a7403248d83dee7c14ce9578618872c745fdffcd 100644
(file)
--- a/
drivers/infiniband/hw/qib/qib_file_ops.c
+++ b/
drivers/infiniband/hw/qib/qib_file_ops.c
@@
-1285,7
+1285,7
@@
static int setup_ctxt(struct qib_pportdata *ppd, int ctxt,
strlcpy(rcd->comm, current->comm, sizeof(rcd->comm));
ctxt_fp(fp) = rcd;
qib_stats.sps_ctxts++;
- dd->freectxts
++
;
+ dd->freectxts
--
;
ret = 0;
goto bail;
@@
-1794,7
+1794,7
@@
static int qib_close(struct inode *in, struct file *fp)
if (dd->pageshadow)
unlock_expected_tids(rcd);
qib_stats.sps_ctxts--;
- dd->freectxts
--
;
+ dd->freectxts
++
;
}
mutex_unlock(&qib_mutex);