projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9641b74
)
IB/mlx5: Simplify mlx5_ib_destroy_srq
author
Eli Cohen
<eli@dev.mellanox.co.il>
Wed, 23 Oct 2013 06:53:16 +0000
(09:53 +0300)
committer
Roland Dreier
<roland@purestorage.com>
Fri, 8 Nov 2013 22:42:59 +0000
(14:42 -0800)
Make use of destroy_srq_kernel() to clear SRQ resouces.
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/srq.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx5/srq.c
b/drivers/infiniband/hw/mlx5/srq.c
index
0aa478b
..
f1e5845
100644
(file)
--- a/
drivers/infiniband/hw/mlx5/srq.c
+++ b/
drivers/infiniband/hw/mlx5/srq.c
@@
-390,9
+390,7
@@
int mlx5_ib_destroy_srq(struct ib_srq *srq)
mlx5_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db);
ib_umem_release(msrq->umem);
} else {
- kfree(msrq->wrid);
- mlx5_buf_free(&dev->mdev, &msrq->buf);
- mlx5_db_free(&dev->mdev, &msrq->db);
+ destroy_srq_kernel(dev, msrq);
}
kfree(srq);